AppRouter class abstract
An app-wide router that supports navigation via AppRoutes.
Implementations should be able to navigate using only the AppRoute provided in navigateTo. They should also notify listeners when the currentRoute changes.
- Implemented types
- Implementers
Constructors
Properties
- currentRoute → AppRoute
-
Returns the closest representation of the top-most current route being
viewed by the user.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
inherited
- Add an interceptor which can veto attempts to navigate to a different app route.
- Navigate to the given app route.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDidPopAppRoute(
AppRoute route) → void - Notify the router that the given app route was popped.
-
popAppRoute(
) → bool - Pop the current top-most app route.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
- Remove one of the interceptor callbacks added via addNavigateInterceptor
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited