route method

Future<DirectionsResult> route(
  1. DirectionsRequest? request, [
  2. void callback(
    1. DirectionsResult?,
    2. DirectionsStatus?
    )?
])

Implementation

Future<DirectionsResult> route(
  DirectionsRequest? request, [
  void Function(DirectionsResult?, DirectionsStatus?)? callback,
]) =>
    promiseToFuture(callMethod(this, 'route', [
      request,
      callback == null
          ? null
          : allowInterop((p0, p1) => callback(p0, DirectionsStatus$cast(p1)))
    ]));