DrivingSessionRouteListener constructor

DrivingSessionRouteListener({
  1. required void onDrivingRoutes(
    1. List<DrivingRoute> routes
    ),
  2. required void onDrivingRoutesError(
    1. Error error
    ),
})

Implementation

factory DrivingSessionRouteListener(
    {required void Function(
            core.List<directions_driving_route.DrivingRoute> routes)
        onDrivingRoutes,
    required void Function(runtime_error.Error error) onDrivingRoutesError}) {
  return DrivingSessionRouteListenerImpl(
    onDrivingRoutes: onDrivingRoutes,
    onDrivingRoutesError: onDrivingRoutesError,
  );
}