enableBackgroundMode method

Future<bool> enableBackgroundMode({
  1. required bool isEnabled,
})

Enables or disables service in the background mode.

Implementation

Future<bool> enableBackgroundMode({required bool isEnabled}) async {
  return await Location().enableBackgroundMode(enable: isEnabled);
}