copyWith method

PathStyle copyWith({
  1. Color32? fill,
  2. FillRule? fillRule,
  3. Color32? stroke,
  4. double? strokeWidth,
  5. StrokeCap? strokeCap,
  6. StrokeJoin? strokeJoin,
  7. double? miterLimit,
  8. List<double>? dash,
})

Implementation

PathStyle copyWith({
  Color32? fill,
  FillRule? fillRule,
  Color32? stroke,
  double? strokeWidth,
  StrokeCap? strokeCap,
  StrokeJoin? strokeJoin,
  double? miterLimit,
  List<double>? dash,
}) => PathStyle(
  fill: fill ?? this.fill,
  fillRule: fillRule ?? this.fillRule,
  stroke: stroke ?? this.stroke,
  strokeWidth: strokeWidth ?? this.strokeWidth,
  strokeCap: strokeCap ?? this.strokeCap,
  strokeJoin: strokeJoin ?? this.strokeJoin,
  miterLimit: miterLimit ?? this.miterLimit,
  dash: dash ?? this.dash,
);