RouteHandler constructor
RouteHandler({
- required void onMasstransitRoutes(
- List<
MasstransitRoute> routes
- List<
- required void onMasstransitRoutesError(
- 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,
);
}