RouterBase<T extends Object> class abstract

Base class for user-owned generated routers.

Constructors

RouterBase()

Properties

debugLogDiagnostics bool
Whether generated routing should print runtime diagnostics.
no setter
hashCode int
The hash code for this object.
no setterinherited
observers List<NavigatorObserver>
Navigator observers attached to the generated root Navigator.
no setter
refreshListenable Listenable?
Optional listenable that triggers redirect and guard reevaluation.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

didChangeRouteStack(RouteStack<T> previous, RouteStack<T> next) → void
Called after the generated router commits a route stack change.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onException(Object error, StackTrace stackTrace) → void
Handles asynchronous router failures from unawaited navigation work.
parseRouteInformation(RouteInformation information) RouteInformation
Normalizes incoming route information before generated route matching.
redirect(T route) → T?
Returns a replacement route before guards run, or null to continue.
toString() String
A string representation of this object.
inherited

Operators

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