toggleEvents static method
Future<void>
toggleEvents({
- required bool location,
- bool? geofence,
- bool? trips,
- bool? movingGeofence,
- required RoamUserCallBack callBack,
Toggle User Events Accepts Boolean values for Geofence, Trips, Moving Geofence & Location Returns Roam User
Implementation
static Future<void> toggleEvents({required bool location,
bool? geofence,
bool? trips,
bool? movingGeofence,
required RoamUserCallBack callBack}) async {
final Map<String, dynamic> params = <String, dynamic>{
'geofence': geofence,
'location': location,
'trips': trips,
'movingGeofence': movingGeofence
};
final String? result =
await _channel.invokeMethod(METHOD_TOGGLE_EVENTS, params);
callBack(user: result);
}