Zone constructor
Zone({
- required String id,
- required double radius,
- required List<
LatLng> coordinates, - int? notificationResponsivenessMs,
- List<
GeofenceEventType> triggers = const [GeofenceEventType.enter, GeofenceEventType.exit, GeofenceEventType.dwell], - Duration? expirationDuration,
- Duration? dwellLoiteringDelay,
- GeofenceEventType initialTrigger = GeofenceEventType.enter,
Implementation
Zone({
required this.id,
required this.radius,
required this.coordinates,
this.notificationResponsivenessMs,
this.triggers = const [
GeofenceEventType.enter,
GeofenceEventType.exit,
GeofenceEventType.dwell,
],
this.expirationDuration,
this.dwellLoiteringDelay,
this.initialTrigger = GeofenceEventType.enter,
});