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