shouldSaveGpsLocation method

Future<void> shouldSaveGpsLocation(
  1. bool saveGPS
)

Implementation

Future<void> shouldSaveGpsLocation(bool saveGPS) async {
  final isGranted = await CamerawesomePlugin.setExifPreferences(
    ExifPreferences(saveGPSLocation: saveGPS),
  );

  // check if user location has been granted,
  // always return true if saveGPS is set to false
  if (isGranted) {
    exifPreferences.saveGPSLocation = saveGPS;
    _saveGpsLocationController.sink.add(saveGPS);
  }
}