addPositionOnCurrentZone method

void addPositionOnCurrentZone(
  1. LatLng position
)

Adds a new position to the current zone being created.

position is the LatLng point to be added to the current zone's coordinates.

Implementation

void addPositionOnCurrentZone(LatLng position) {
  if (_currentZoneCoordinates != null) {
    _currentZoneCoordinates!.coordinates.add(position);
    notifyListeners();
  }
}