copyWith method

PolygonBean copyWith({
  1. Color? edgeColor,
  2. Color? bodyColor,
  3. double? edgeWidth,
  4. required List<Point> polygonPoint,
  5. Color? pointsColor,
  6. double? pointsSize,
})

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