getLocation function
Returns the current location. throws an Exception on Error
Implementation
Future<LocationData> getLocation({LocationSettings? settings}) async {
final location = await _platform.getLocation(settings: settings);
if (location == null) throw Exception('Unable to get location');
return location;
}