import 'package:flutter/material.dart'; class DrawingPoint { int id; List offsets; Color color; double width; DrawingPoint({ this.id = -1, this.offsets = const [], this.color = Colors.black, this.width = 2, }); DrawingPoint copyWith({List? offsets}) { return DrawingPoint( id: id, color: color, width: width, offsets: offsets ?? this.offsets, ); } }