copyWith method

FreeStyleSettings copyWith({
  1. FreeStyleMode? mode,
  2. Color? color,
  3. double? strokeWidth,
})

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,
  );
}