Skip to main content

ImplicitlyAnimatedWidgetData

Struct ImplicitlyAnimatedWidgetData 

Source
pub struct ImplicitlyAnimatedWidgetData {
    pub key: Option<KeyRef>,
    pub curve: Rc<dyn Curve>,
    pub duration: Duration,
    pub on_end: Option<Listener>,
}
Expand description

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

Fields§

§key: Option<KeyRef>§curve: Rc<dyn Curve>

The curve to apply when animating the parameters of this container.

§duration: Duration

The duration over which to animate the parameters of this container.

§on_end: Option<Listener>

Called every time an animation completes.

This can be useful to trigger additional actions (e.g. another animation) at the end of the current animation.

Implementations§

Source§

impl ImplicitlyAnimatedWidgetData

Source

pub fn debug_fill_properties( &self, properties: &mut DiagnosticPropertiesBuilder, )

Dart’s ImplicitlyAnimatedWidget.debugFillProperties, which every implicit animation widget inherits and calls at the position of Dart’s super.

Source

pub fn new(duration: Duration) -> ImplicitlyAnimatedWidgetData

The base fields of a widget animating over duration, with Dart’s defaults.

Trait Implementations§

Source§

impl Debug for ImplicitlyAnimatedWidgetData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for ImplicitlyAnimatedWidgetData

§

impl !Send for ImplicitlyAnimatedWidgetData

§

impl !Sync for ImplicitlyAnimatedWidgetData

§

impl !UnwindSafe for ImplicitlyAnimatedWidgetData

§

impl Forget for ImplicitlyAnimatedWidgetData

§

impl Freeze for ImplicitlyAnimatedWidgetData
where *const RcInner<dyn Key> is !null: Freeze, PhantomData<RcInner<dyn Key>>: Freeze, *const RcInner<dyn Curve> is !null: Freeze, PhantomData<RcInner<dyn Curve>>: Freeze, *const RcInner<dyn Fn(&mut App)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze, NonZero<u32>: Freeze, *const (): Freeze,

§

impl Move for ImplicitlyAnimatedWidgetData

§

impl Unpin for ImplicitlyAnimatedWidgetData
where Rc<dyn Key>: Unpin, Rc<dyn Curve>: Unpin, Rc<dyn Fn(&mut App)>: Unpin, NonZero<u32>: Unpin, *const (): Unpin,

§

impl UnsafeUnpin for ImplicitlyAnimatedWidgetData
where *const RcInner<dyn Key> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Key>>: UnsafeUnpin, *const RcInner<dyn Curve> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Curve>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin, NonZeroU32Inner: UnsafeUnpin, *const (): UnsafeUnpin,

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>