Skip to main content

RawDialogRouteData

Struct RawDialogRouteData 

Source
pub struct RawDialogRouteData {
    pub page_builder: RoutePageBuilder,
    pub barrier_dismissible: bool,
    pub barrier_label: Option<String>,
    pub barrier_color: Option<Color>,
    pub transition_duration: Duration,
    pub transition_builder: Option<RouteTransitionsBuilder>,
    pub barrier_builder: Option<RouteBarrierBuilder>,
    pub fullscreen_dialog: bool,
}
Expand description

The fields of Dart’s RawDialogRoute, which its subclasses carry.

Fields§

§page_builder: RoutePageBuilder

Used to build the route’s primary contents.

§barrier_dismissible: bool

Whether touching the modal barrier pops the route; see ModalRoute::barrier_dismissible.

§barrier_label: Option<String>

The semantic label of the modal barrier; see ModalRoute::barrier_label.

§barrier_color: Option<Color>

The color painted behind the dialog; see ModalRoute::barrier_color.

§transition_duration: Duration

How long the route takes to arrive on and leave off the screen; see TransitionRoute::transition_duration.

§transition_builder: Option<RouteTransitionsBuilder>

Used to define how the route arrives on and leaves off the screen.

If None, the transition is a linear fade of the page’s contents.

§barrier_builder: Option<RouteBarrierBuilder>

Used to define how the route’s modal barrier is built.

If not None, this builder is used to wrap or replace the default ModalBarrier.

§fullscreen_dialog: bool

Whether this route is a full-screen dialog.

In Material and Cupertino, being fullscreen has the effects of making the app bars have a close button instead of a back button.

Implementations§

Source§

impl RawDialogRouteData

Source

pub fn new(page_builder: RoutePageBuilder) -> RawDialogRouteData

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for RawDialogRouteData

§

impl !Send for RawDialogRouteData

§

impl !Sync for RawDialogRouteData

§

impl !UnwindSafe for RawDialogRouteData

§

impl Forget for RawDialogRouteData

§

impl Freeze for RawDialogRouteData
where *const RcInner<dyn Fn(&mut App, AnyElement, Retained<AnyAnimation<f64>>, Retained<AnyAnimation<f64>>) -> Rc<dyn Widget>> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<AnyAnimation<f64>>, Retained<AnyAnimation<f64>>) -> Rc<dyn Widget>>>: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const RcInner<dyn Fn(&mut App, AnyElement, Retained<AnyAnimation<f64>>, Retained<AnyAnimation<f64>>, Rc<dyn Widget>) -> Rc<dyn Widget>> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<AnyAnimation<f64>>, Retained<AnyAnimation<f64>>, Rc<dyn Widget>) -> Rc<dyn Widget>>>: Freeze, *const RcInner<dyn Fn(&mut App, AnyElement, &RouteBarrierDetails, Rc<dyn Widget>) -> Rc<dyn Widget>> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, &RouteBarrierDetails, Rc<dyn Widget>) -> Rc<dyn Widget>>>: Freeze,

§

impl Move for RawDialogRouteData

§

impl Unpin for RawDialogRouteData

§

impl UnsafeUnpin for RawDialogRouteData

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>