createZone method
void
createZone()
Creates a new zone if no current zone is being created.
Initializes the current zone with an empty list of coordinates and a unique zone ID.
Implementation
void createZone() {
if (_currentZoneCoordinates == null) {
_currentZoneCoordinates = Zone(
coordinates: [],
zoneId: _generateZoneId(),
zoneName: 'default zone',
);
notifyListeners();
}
}