App-wide overrides for Navigator operations.
A concrete subclass may replace any of the push/pop/remove operations with custom logic, for example to integrate pageless routes with the declarative navigation tree. Unspecified operations fall back to the standard NavigatorState behaviour.
- Implementers
Constructors
-
Creates a NavigatorOverrides with the given operation overrides.
const
-
Default instance that applies no overrides.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- observer → CompatibilityObserver?
-
Observer for pageless route lifecycle events.
final
- pop → PopOperation?
-
Custom implementation of
Navigator.pop.final - push → PushOperation?
-
Custom implementation of
Navigator.push.final - pushAndRemoveUntil → PushAndRemoveUntilOperation?
-
Custom implementation of
Navigator.pushAndRemoveUntil.final - pushReplacement → PushReplacementOperation?
-
Custom implementation of
Navigator.pushReplacement.final - removeRoute → RemoveRouteOperation?
-
Custom implementation of
Navigator.removeRoute.final - routeIdGenerator → RouteIdGenerator
-
Generator for stable pageless route identifiers.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited