accuracy_setting

Get Location Accuracy Setting

Get Accuracy

AccuracySettingMode mode = await AccuracySetting.getAccuracySetting();
print(mode);

Response

LOCATION_MODE_OFF,
LOCATION_MODE_SENSORS_ONLY,
LOCATION_MODE_BATTERY_SAVING,
LOCATION_MODE_HIGH_ACCURACY,
NOT_IMPLEMENTED, // if API < 19 or API >= 28

Get Provider Enabled

return true if enabled

if (await AccuracySetting.getProviderEnabled(LocationProvider.GPS)) {
  print("GPS Active");
}

if (await AccuracySetting.getProviderEnabled(LocationProvider.NETWORK)) {
  print("Network Active");
}

Author

This plugin for Flutter is developed by Fuad Ar-Radhi.

Libraries

accuracy_setting