copyWith method

  1. @override
FreeStyleDrawable copyWith({
  1. bool? hidden,
  2. List<Offset>? path,
  3. Color? color,
  4. double? strokeWidth,
})
override

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