pub struct AnimateTo {
pub duration_ms: f64,
pub curve: Curve,
}Expand description
The duration/curve ScrollController::animate_to eases a programmatic
scroll through. Both fields are required rather than defaulted — Flutter’s
ScrollController.animateTo keeps duration/curve required for the
same reason: an app names the motion it wants rather than inheriting a
guessed one.
Fields§
§duration_ms: f64How long the tween runs, in milliseconds. A non-positive or
non-finite value (<= 0.0, or NaN) behaves like
ScrollController::jump_to — an instant move, no animation —
matching how the app’s reduce_motion theme flag collapses this call.
curve: CurveThe easing curve the tween runs through.
Trait Implementations§
impl Copy for AnimateTo
impl StructuralPartialEq for AnimateTo
Auto Trait Implementations§
impl Freeze for AnimateTo
impl RefUnwindSafe for AnimateTo
impl Send for AnimateTo
impl Sync for AnimateTo
impl Unpin for AnimateTo
impl UnsafeUnpin for AnimateTo
impl UnwindSafe for AnimateTo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.