copyWith method

  1. @override
SquareStroke copyWith({
  1. List<Offset>? points,
  2. Color? color,
  3. double? size,
  4. double? opacity,
  5. bool? filled,
})
override

Implementation

@override
SquareStroke copyWith({
  List<Offset>? points,
  Color? color,
  double? size,
  double? opacity,
  bool? filled,
}) {
  return SquareStroke(
    points: points ?? this.points,
    color: color ?? this.color,
    size: size ?? this.size,
    opacity: opacity ?? this.opacity,
    filled: filled ?? this.filled,
  );
}