RouterModule constructor
RouterModule({
- required Iterable<
RouteNode> routes, - Uri? initialLocation,
- WidgetBuilder? loading,
- WidgetBuilder? notFound,
- RouterErrorBuilder? error,
- RouterInitialState? initialState,
Creates a router module from manual or generated routes.
Implementation
RouterModule({
required Iterable<RouteNode> routes,
this.initialLocation,
this.loading,
this.notFound,
this.error,
this.initialState,
}) : routes = List<RouteNode>.of(routes, growable: false);