RouteHandler constructor

RouteHandler({
  1. required void onMasstransitRoutes(
    1. List<MasstransitRoute> routes
    ),
  2. required void onMasstransitRoutesError(
    1. Error error
    ),
})

Implementation

factory RouteHandler(
    {required void Function(
            core.List<transport_masstransit_route.MasstransitRoute> routes)
        onMasstransitRoutes,
    required void Function(runtime_error.Error error)
        onMasstransitRoutesError}) {
  return RouteHandlerImpl(
    onMasstransitRoutes: onMasstransitRoutes,
    onMasstransitRoutesError: onMasstransitRoutesError,
  );
}