pub enum RouteLifecycle {
Show 16 variants
Staging,
Add,
Adding,
Push,
PushReplace,
Pushing,
Replace,
Idle,
Pop,
Complete,
Remove,
Popping,
Removing,
Dispose,
Disposing,
Disposed,
}Expand description
The lifecycle of a RouteEntry. The variants are declared in Dart’s order: the
comparisons the navigator makes on currentState.index are PartialOrd here.
Variants§
Staging
We will wait for the transition delegate to decide what to do with this route.
Add
We’ll want to run install, did_add, etc; a route created by
Navigator::on_generate_initial_routes or by the initial Navigator::pages.
Adding
We’re waiting for the completion of the top-most route’s did_push.
Push
We’ll want to run install, did_push, etc; a route added via push and friends.
PushReplace
We’ll want to run install, did_push, etc; a route added via push_replacement and
friends.
Pushing
We’re waiting for the completion of did_push.
Replace
We’ll want to run install, did_replace, etc; a route added via replace and friends.
Idle
The route is being harmless.
Pop
We’ll want to call did_pop.
Complete
We’ll want to call did_complete.
Remove
We’ll want to run did_replace / did_remove etc.
Popping
We’re waiting for the route to call finalize_route to switch to dispose.
Removing
We are waiting for subsequent routes to be done animating, then will switch to dispose.
Dispose
We will dispose the route momentarily.
Disposing
The entry is waiting for its widget subtree to be disposed.
Disposed
We have disposed the route.
Trait Implementations§
Source§impl Clone for RouteLifecycle
impl Clone for RouteLifecycle
impl Copy for RouteLifecycle
Source§impl Debug for RouteLifecycle
impl Debug for RouteLifecycle
impl Eq for RouteLifecycle
Source§impl Ord for RouteLifecycle
impl Ord for RouteLifecycle
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RouteLifecycle
impl PartialEq for RouteLifecycle
Source§impl PartialOrd for RouteLifecycle
impl PartialOrd for RouteLifecycle
impl StructuralPartialEq for RouteLifecycle
Auto Trait Implementations§
impl Forget for RouteLifecycle
impl Freeze for RouteLifecycle
impl Move for RouteLifecycle
impl RefUnwindSafe for RouteLifecycle
impl Send for RouteLifecycle
impl Sync for RouteLifecycle
impl Unpin for RouteLifecycle
impl UnsafeUnpin for RouteLifecycle
impl UnwindSafe for RouteLifecycle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.