YxRouteObserver class
Observes push, pop and update operations that affect a specific route.
Attach an observer to a declaration to react whenever the route it owns appears, disappears, or changes inside the navigation tree.
- Annotations
-
- @experimental
- @immutable
Constructors
- YxRouteObserver({PopRouteMutationCallback? onPop, PushRouteMutationCallback? onPush, UpdateRouteMutationCallback? onUpdate})
-
Observes push, pop and update operations that affect a specific route.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onPop → PopRouteMutationCallback?
-
Called when the observed route is removed from the tree.
final
- onPush → PopRouteMutationCallback?
-
Called when the observed route is added to the tree.
final
- onUpdate → PopRouteMutationCallback?
-
Called when the observed route's data changes.
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
-
onRouteDiffMutation(
Mutation mutation, RouteNodeDiffResult diff) → void - Called with every mutation that touched the observed route.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited