copyWith method
Creates a copy of this but with the given fields replaced with the new values.
Implementation
FreeStyleSettings copyWith(
{FreeStyleMode? mode, Color? color, double? strokeWidth}) {
return FreeStyleSettings(
mode: mode ?? this.mode,
color: color ?? this.color,
strokeWidth: strokeWidth ?? this.strokeWidth,
);
}