pub struct Animated<W: AnimatedWidget>(pub W);Expand description
The StatefulWidget an AnimatedWidget becomes; its state is Dart’s
_AnimatedState. Subclasses typically do not override createState, so this is the
one state every animated widget gets.
Tuple Fields§
§0: WTrait Implementations§
Source§impl<W: AnimatedWidget> Debug for Animated<W>
impl<W: AnimatedWidget> Debug for Animated<W>
Source§impl<W: AnimatedWidget> StatefulWidget for Animated<W>
impl<W: AnimatedWidget> StatefulWidget for Animated<W>
Source§type State = AnimatedState<W>
type State = AnimatedState<W>
The state this widget creates.
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.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 create_state(&self) -> AnimatedState<W>
fn create_state(&self) -> AnimatedState<W>
Creates the mutable state for this widget at a given location in the tree. Read more
Source§fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
Auto Trait Implementations§
impl<W> Forget for Animated<W>
impl<W> Freeze for Animated<W>where
W: Freeze,
impl<W> Move for Animated<W>
impl<W> RefUnwindSafe for Animated<W>where
W: RefUnwindSafe,
impl<W> Send for Animated<W>where
W: Send,
impl<W> Sync for Animated<W>where
W: Sync,
impl<W> Unpin for Animated<W>where
W: Unpin,
impl<W> UnsafeUnpin for Animated<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for Animated<W>where
W: UnwindSafe,
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<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.