copyWith method

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

Implementation

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