pub struct AnyTransitionRoute { /* private fields */ }Expand description
Erased TransitionRoute: what Dart’s route is TransitionRoute<dynamic> produces.
Implementations§
Source§impl AnyTransitionRoute
impl AnyTransitionRoute
Sourcepub fn upgrade(self, app: &App) -> Option<Retained<AnyTransitionRoute>>
pub fn upgrade(self, app: &App) -> Option<Retained<AnyTransitionRoute>>
A reference while something still keeps the object, None once it is freed or
its last keeper has let go; see Handle::upgrade.
Sourcepub fn keep(self, app: &App) -> Retained<AnyTransitionRoute>
pub fn keep(self, app: &App) -> Retained<AnyTransitionRoute>
A reference to an object something is known to keep; see
Handle::keep.
Source§impl AnyTransitionRoute
impl AnyTransitionRoute
Sourcepub fn underlying_animation(self, app: &App) -> Option<AnyAnimation<f64>>
pub fn underlying_animation(self, app: &App) -> Option<AnyAnimation<f64>>
Dart’s _animation: the animation a route runs on, under whatever
animation answers with.
A ModalRoute answers with a proxy that reads complete while the route is
offstage, which is exactly when the route ahead is put offstage to be measured. A
route behind follows this one instead, so it stays where it is until the transition
really runs.
Sourcepub fn controller(self, app: &App) -> Option<Handle<AnimationController>>
pub fn controller(self, app: &App) -> Option<Handle<AnimationController>>
Sourcepub fn controller_value(self, app: &App) -> f64
pub fn controller_value(self, app: &App) -> f64
The value of Dart’s _controller, which didReplace copies.
Sourcepub fn allow_snapshotting(self, app: &App) -> bool
pub fn allow_snapshotting(self, app: &App) -> bool
Sourcepub fn transition_duration(self, app: &mut App) -> Duration
pub fn transition_duration(self, app: &mut App) -> Duration
Sourcepub fn reverse_transition_duration(self, app: &mut App) -> Duration
pub fn reverse_transition_duration(self, app: &mut App) -> Duration
Sourcepub fn can_transition_to(
self,
app: &App,
next_route: AnyTransitionRoute,
) -> bool
pub fn can_transition_to( self, app: &App, next_route: AnyTransitionRoute, ) -> bool
Sourcepub fn can_transition_from(
self,
app: &App,
previous_route: AnyTransitionRoute,
) -> bool
pub fn can_transition_from( self, app: &App, previous_route: AnyTransitionRoute, ) -> bool
Sourcepub fn completed(self, app: &App) -> CompleterFuture<RouteResult> ⓘ
pub fn completed(self, app: &App) -> CompleterFuture<RouteResult> ⓘ
Sourcepub fn pop_gesture_enabled(self, app: &mut App) -> bool
pub fn pop_gesture_enabled(self, app: &mut App) -> bool
Sourcepub fn handle_start_back_gesture(self, app: &mut App, progress: f64)
pub fn handle_start_back_gesture(self, app: &mut App, progress: f64)
Sourcepub fn handle_update_back_gesture_progress(self, app: &mut App, progress: f64)
pub fn handle_update_back_gesture_progress(self, app: &mut App, progress: f64)
Sourcepub fn handle_commit_back_gesture(self, app: &mut App)
pub fn handle_commit_back_gesture(self, app: &mut App)
Sourcepub fn handle_cancel_back_gesture(self, app: &mut App)
pub fn handle_cancel_back_gesture(self, app: &mut App)
Trait Implementations§
Source§impl Clone for AnyTransitionRoute
impl Clone for AnyTransitionRoute
impl Copy for AnyTransitionRoute
Source§impl Debug for AnyTransitionRoute
impl Debug for AnyTransitionRoute
impl Eq for AnyTransitionRoute
Source§impl From<AnyModalRoute> for AnyTransitionRoute
impl From<AnyModalRoute> for AnyTransitionRoute
Source§fn from(route: AnyModalRoute) -> AnyTransitionRoute
fn from(route: AnyModalRoute) -> AnyTransitionRoute
Converts to this type from the input type.
Source§impl From<AnyTransitionRoute> for AnyRoute
A kept route as a RouteRef, through Retained::erase: Dart’s upcast.
impl From<AnyTransitionRoute> for AnyRoute
A kept route as a RouteRef, through Retained::erase: Dart’s upcast.
Source§fn from(route: AnyTransitionRoute) -> AnyRoute
fn from(route: AnyTransitionRoute) -> AnyRoute
Converts to this type from the input type.
Source§impl From<AnyTransitionRoute> for HandleId
impl From<AnyTransitionRoute> for HandleId
Source§fn from(handle: AnyTransitionRoute) -> HandleId
fn from(handle: AnyTransitionRoute) -> HandleId
Converts to this type from the input type.
Source§impl<Leaf: TransitionRoute> From<Handle<Leaf>> for AnyTransitionRoute
impl<Leaf: TransitionRoute> From<Handle<Leaf>> for AnyTransitionRoute
Source§fn from(handle: Handle<Leaf>) -> AnyTransitionRoute
fn from(handle: Handle<Leaf>) -> AnyTransitionRoute
Converts to this type from the input type.
Source§impl Hash for AnyTransitionRoute
impl Hash for AnyTransitionRoute
Source§impl PartialEq for AnyTransitionRoute
impl PartialEq for AnyTransitionRoute
Source§impl PartialEq<AnyTransitionRoute> for &Retained<AnyTransitionRoute>
impl PartialEq<AnyTransitionRoute> for &Retained<AnyTransitionRoute>
Auto Trait Implementations§
impl Forget for AnyTransitionRoute
impl Freeze for AnyTransitionRoute
impl Move for AnyTransitionRoute
impl RefUnwindSafe for AnyTransitionRoute
impl Send for AnyTransitionRoute
impl Sync for AnyTransitionRoute
impl Unpin for AnyTransitionRoute
impl UnsafeUnpin for AnyTransitionRoutewhere
NonZeroU32Inner: UnsafeUnpin,
&'static TransitionRouteVTable: UnsafeUnpin,
impl UnwindSafe for AnyTransitionRoute
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.