Geofence constructor

Geofence({
  1. required String id,
  2. dynamic data,
  3. required double latitude,
  4. required double longitude,
  5. required List<GeofenceRadius> radius,
})

Constructs an instance of Geofence.

Implementation

Geofence({
  required this.id,
  this.data,
  required this.latitude,
  required this.longitude,
  required this.radius,
})  : assert(id.isNotEmpty),
      assert(radius.isNotEmpty);