getLocation method
Gets the current location of the phone. Throws an error if the app has no permission to access location.
Implementation
Future<location.LocationData> getLocation() async =>
_lastKnownLocation = await locationManager.getLocation();