copyWith method
Creates a copy of this but with the given fields replaced with the new values.
Implementation
@override
FreeStyleDrawable copyWith({
bool? hidden,
List<Offset>? path,
Color? color,
double? strokeWidth,
}) {
return FreeStyleDrawable(
path: path ?? this.path,
color: color ?? this.color,
strokeWidth: strokeWidth ?? this.strokeWidth,
hidden: hidden ?? this.hidden,
);
}