pub struct RouteEntry { /* private fields */ }Expand description
Dart’s _RouteEntry: one Route and its place in a NavigatorState’s history.
This is also the RouteTransitionRecord a TransitionDelegate receives.
Implementations§
Source§impl RouteEntry
impl RouteEntry
Sourcepub const K_DEBUG_POP_ATTEMPT_LIMIT: usize = 100
pub const K_DEBUG_POP_ATTEMPT_LIMIT: usize = 100
The maximum number of did_pop attempts a mark_for_pop makes on a route that handles
pops internally.
Sourcepub fn page_based(self: Handle<Self>, app: &App) -> bool
pub fn page_based(self: Handle<Self>, app: &App) -> bool
Whether this entry was created from a Page in Navigator::pages.
Sourcepub fn current_state(self: Handle<Self>, app: &App) -> RouteLifecycle
pub fn current_state(self: Handle<Self>, app: &App) -> RouteLifecycle
The lifecycle state this entry is in.
Trait Implementations§
Source§impl RouteTransitionRecord for RouteEntry
impl RouteTransitionRecord for RouteEntry
Source§fn is_waiting_for_entering_decision(self: Handle<Self>, app: &App) -> bool
fn is_waiting_for_entering_decision(self: Handle<Self>, app: &App) -> bool
Whether this route is waiting for the decision on how to enter the screen. Read more
Source§fn is_waiting_for_exiting_decision(self: Handle<Self>, app: &App) -> bool
fn is_waiting_for_exiting_decision(self: Handle<Self>, app: &App) -> bool
Whether this route is waiting for the decision on how to exit the screen. Read more
Source§fn mark_for_push(self: Handle<Self>, app: &mut App)
fn mark_for_push(self: Handle<Self>, app: &mut App)
Marks the route to be pushed with transition.
Source§fn mark_for_add(self: Handle<Self>, app: &mut App)
fn mark_for_add(self: Handle<Self>, app: &mut App)
Marks the route to be added without transition.
Source§fn mark_for_pop(self: Handle<Self>, app: &mut App, result: RouteResult)
fn mark_for_pop(self: Handle<Self>, app: &mut App, result: RouteResult)
Marks the route to be popped with transition.
Source§fn mark_for_complete(self: Handle<Self>, app: &mut App, result: RouteResult)
fn mark_for_complete(self: Handle<Self>, app: &mut App, result: RouteResult)
Marks the route to be completed without transition.
Auto Trait Implementations§
impl !RefUnwindSafe for RouteEntry
impl !Send for RouteEntry
impl !Sync for RouteEntry
impl !UnwindSafe for RouteEntry
impl Forget for RouteEntry
impl Freeze for RouteEntrywhere
NonZero<u32>: Freeze,
&'static RouteVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const RcInner<RestorationInformation> is !null: Freeze,
PhantomData<RcInner<RestorationInformation>>: Freeze,
*const RcInner<dyn Any> is !null: Freeze,
PhantomData<RcInner<dyn Any>>: Freeze,
impl Move for RouteEntry
impl Unpin for RouteEntry
impl UnsafeUnpin for RouteEntrywhere
NonZeroU32Inner: UnsafeUnpin,
&'static RouteVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const RcInner<RestorationInformation> is !null: UnsafeUnpin,
PhantomData<RcInner<RestorationInformation>>: UnsafeUnpin,
*const RcInner<dyn Any> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Any>>: UnsafeUnpin,
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
Mutably borrows from an owned value. Read more