setTempToPolygon method
void
setTempToPolygon()
Function to set temporary polygons to polygons
Implementation
void setTempToPolygon() {
_tempPolygons.removeWhere((poly) => poly.polygonId.toString() == uniqueID);
_tempPolygons.add(Polygon(
polygonId: PolygonId(uniqueID),
points: _tempLocation,
strokeWidth: 3,
fillColor: _polygonColor!.withOpacity(0.3),
strokeColor: _polygonColor!));
_polygons = _tempPolygons;
notifyListeners();
}