addGeofences static method
Adds multiple geofences.
Implementation
static Future<bool> addGeofences(List<Geofence> geofences) async {
final payload = geofences.map((g) => g.toMap()).toList();
final result =
await LocusChannels.methods.invokeMethod('addGeofences', payload);
return result == true;
}