getCurrentLocation method

Future<Location> getCurrentLocation()

Get the current location once.

Implementation

Future<Location> getCurrentLocation() async {
  var completer = Completer<Location>();

  getLocationUpdates(completer.complete);

  return completer.future;
}