dup method

  1. @override
PolygonMapObject dup(
  1. MapObjectId mapId
)
override

Creates a new copy of T with the same attributes as the original except its id

Implementation

@override
PolygonMapObject dup(MapObjectId mapId) {
  return PolygonMapObject(
    mapId: mapId,
    polygon: polygon,
    isGeodesic: isGeodesic,
    zIndex: zIndex,
    onTap: onTap,
    consumeTapEvents: consumeTapEvents,
    isVisible: isVisible,
    fillColor: fillColor,
    strokeColor: strokeColor,
    strokeWidth: strokeWidth
  );
}