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