copyWith method

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

Creates a copy of this but with the given fields replaced with the new values.

Implementation

@override
EraseDrawable copyWith({
  bool? hidden,
  List<Offset>? path,
  double? strokeWidth,
}) {
  return EraseDrawable(
    path: path ?? this.path,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    hidden: hidden ?? this.hidden,
  );
}