loadLocation method

Future<Location> loadLocation({
  1. required int locationId,
})

Implementation

Future<Location> loadLocation({required int locationId}) async {
  _locationCompleter = Completer();
  _channel.invokeMethod("loadLocation", {
    "locationId": locationId,
  });
  await _locationCompleter!.future;
  location = Location.fromMap(await _channel.invokeMethod("getLocation"));
  return location!;
}