RouterModule constructor

RouterModule({
  1. required Iterable<RouteNode> routes,
  2. Uri? initialLocation,
  3. WidgetBuilder? loading,
  4. WidgetBuilder? notFound,
  5. RouterErrorBuilder? error,
  6. 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);