state property

Future<State> state

Return the current State of the plugin, including all Config parameters.

State state = await BackgroundGeolocation.state();

Implementation

static Future<State> get state async {
  Map state = (await _methodChannel.invokeMapMethod('getState'))!;
  return State(state);
}