Skip to main content

ModalRouteData

Struct ModalRouteData 

Source
pub struct ModalRouteData {
    pub filter: Option<ImageFilterConfig>,
    pub traversal_edge_behavior: Option<TraversalEdgeBehavior>,
    pub directional_traversal_edge_behavior: Option<TraversalEdgeBehavior>,
    pub received_transition: Option<DelegatedTransitionBuilder>,
    /* private fields */
}
Expand description

The fields Dart’s ModalRoute declares; every modal route carries this bag under the field modal_route.

Fields§

§filter: Option<ImageFilterConfig>

The filter to add to the barrier.

If given, this filter is applied to the modal barrier using BackdropFilter. This allows blur effects, for example.

§traversal_edge_behavior: Option<TraversalEdgeBehavior>

Controls the transfer of focus beyond the first and the last items of a FocusScopeNode.

If None, Navigator::route_traversal_edge_behavior is used.

§directional_traversal_edge_behavior: Option<TraversalEdgeBehavior>

Controls the directional transfer of focus beyond the first and the last items of a FocusScopeNode.

If None, Navigator::route_directional_traversal_edge_behavior is used.

§received_transition: Option<DelegatedTransitionBuilder>

The DelegatedTransitionBuilder received from the route above this one in the navigation stack.

It uses the above route’s ModalRoute::delegated_transition in order to show the right route transition when the above route either enters or leaves the navigation stack. If not None, it wraps the route content.

Implementations§

Source§

impl ModalRouteData

Source

pub fn new(app: &mut App) -> ModalRouteData

The bag of a freshly created modal route; Dart’s constructor defaults.

Auto Trait Implementations§

§

impl !RefUnwindSafe for ModalRouteData

§

impl !Send for ModalRouteData

§

impl !Sync for ModalRouteData

§

impl !UnwindSafe for ModalRouteData

§

impl Forget for ModalRouteData

§

impl Freeze for ModalRouteData
where *const ArcInner<ImageFilter> is !null: Freeze, PhantomData<ArcInner<ImageFilter>>: Freeze, *const ArcInner<RuntimeEffect> is !null: Freeze, PhantomData<ArcInner<RuntimeEffect>>: Freeze, *const ArcInner<[u8]> is !null: Freeze, PhantomData<ArcInner<[u8]>>: Freeze, *const u8 is !null: Freeze, PhantomData<EffectImage>: Freeze, PhantomData<(String, f64)>: Freeze, *const RcInner<ImageFilterConfig> is !null: Freeze, PhantomData<RcInner<ImageFilterConfig>>: Freeze, *const RcInner<dyn Fn(&mut App, AnyElement, Retained<AnyAnimation<f64>>, Retained<AnyAnimation<f64>>, bool, Option<&Rc<dyn Widget>>) -> Option<Rc<dyn Widget>>> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<AnyAnimation<f64>>, Retained<AnyAnimation<f64>>, bool, Option<&Rc<dyn Widget>>) -> Option<Rc<dyn Widget>>>>: Freeze, *const (): Freeze, NonZero<u32>: Freeze, PhantomData<fn() -> ProxyAnimation>: Freeze, *const RcInner<Keep> is !null: Freeze, PhantomData<RcInner<Keep>>: Freeze, PhantomData<Rc<dyn PopEntry>>: Freeze, *const RcInner<dyn Key> is !null: Freeze, PhantomData<RcInner<dyn Key>>: Freeze, PhantomData<fn() -> PageStorageBucket>: Freeze, PhantomData<fn() -> OverlayEntry>: Freeze, *const RcInner<dyn Widget> is !null: Freeze, PhantomData<RcInner<dyn Widget>>: Freeze,

§

impl Move for ModalRouteData

§

impl Unpin for ModalRouteData

§

impl UnsafeUnpin for ModalRouteData

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>