getLocation method
Gets the current location of the user.
Throws an error if the app has no permission to access location.
Returns a LocationData
object.
Implementation
@override
Future<LocationData> getLocation() async {
return LocationPlatform.instance.getLocation();
}