pub struct ColorTransition {
pub color: Color,
pub duration: Duration,
pub builder: ColorBuilder,
}Expand description
Animates from the colour last built to color over duration whenever color changes; XAML BrushTransition (linear, the transition names no easing).
Fields§
§color: Color§duration: Duration§builder: ColorBuilderImplementations§
Trait Implementations§
Source§impl Clone for ColorTransition
impl Clone for ColorTransition
Source§impl Debug for ColorTransition
impl Debug for ColorTransition
Source§impl StatefulWidget for ColorTransition
impl StatefulWidget for ColorTransition
Source§type State = ColorTransitionState
type State = ColorTransitionState
The state this widget creates.
Source§fn create_state(&self) -> ColorTransitionState
fn create_state(&self) -> ColorTransitionState
Creates the mutable state for this widget at a given location in the tree. Read more
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
See
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl !RefUnwindSafe for ColorTransition
impl !Send for ColorTransition
impl !Sync for ColorTransition
impl !UnwindSafe for ColorTransition
impl Forget for ColorTransition
impl Freeze for ColorTransition
impl Move for ColorTransition
impl Unpin for ColorTransition
impl UnsafeUnpin for ColorTransitionwhere
*const RcInner<dyn Fn(&mut App, Color) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, Color) -> Rc<dyn Widget>>>: 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
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<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.