Geofence constructor
Geofence({
- required String id,
- dynamic data,
- required double latitude,
- required double longitude,
- 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);