copyWith method
Implementation
PolygonBean copyWith({Color? edgeColor, Color? bodyColor, double? edgeWidth, required List<Point> polygonPoint,
Color? pointsColor, double? pointsSize}) {
return PolygonBean(
edgeColor: edgeColor?? this.edgeColor,
bodyColor: bodyColor?? this.bodyColor,
edgeWidth: edgeWidth?? this.edgeWidth,
polygonPoint: this.polygonPoint,
pointsColor: this.pointsColor,
pointsSize: this.pointsSize,
);
}