RouterModule class final

Installs Flutter routing into an application context.

Inheritance

Constructors

RouterModule({required Iterable<RouteNode> routes, Uri? initialLocation, WidgetBuilder? loading, WidgetBuilder? notFound, RouterErrorBuilder? error, RouterInitialState? initialState})
Creates a router module from manual or generated routes.

Properties

error → RouterErrorBuilder?
Widget used for router-level failures.
final
hashCode → int
The hash code for this object.
no setterinherited
initialLocation → Uri?
Initial location overriding the platform route.
final
initialState → RouterInitialState?
Optional server-rendered state for the first navigation.
final
loading → WidgetBuilder?
Widget shown before the first route is ready.
final
notFound → WidgetBuilder?
Widget shown when no route matches.
final
routes → List<RouteNode>
Routes installed by this module.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose(AppContext context) → void
Releases resources owned by this module.
override
initialize(AppContext context) → void
Starts work after every module has registered its values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(ModuleRegistry registry) → void
Registers the values and bindings owned by this module.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited