pub struct FloatingHeaderSnapConfiguration {
pub curve: Rc<dyn Curve>,
pub duration: Duration,
}Expand description
Specifies how a floating header is to be “snapped” (animated) into or out of view.
Fields§
§curve: Rc<dyn Curve>The snap animation curve.
duration: DurationThe snap animation’s duration.
Implementations§
Source§impl FloatingHeaderSnapConfiguration
impl FloatingHeaderSnapConfiguration
Sourcepub fn new() -> FloatingHeaderSnapConfiguration
pub fn new() -> FloatingHeaderSnapConfiguration
Creates an object that specifies how a floating header is to be snapped into or out of view.
Dart’s defaults: Curves::ease and 300 milliseconds.
Sourcepub fn duration(self, value: Duration) -> FloatingHeaderSnapConfiguration
pub fn duration(self, value: Duration) -> FloatingHeaderSnapConfiguration
Sets duration.
Trait Implementations§
Source§impl Default for FloatingHeaderSnapConfiguration
impl Default for FloatingHeaderSnapConfiguration
Source§fn default() -> FloatingHeaderSnapConfiguration
fn default() -> FloatingHeaderSnapConfiguration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FloatingHeaderSnapConfiguration
impl !Send for FloatingHeaderSnapConfiguration
impl !Sync for FloatingHeaderSnapConfiguration
impl !UnwindSafe for FloatingHeaderSnapConfiguration
impl Freeze for FloatingHeaderSnapConfiguration
impl Unpin for FloatingHeaderSnapConfiguration
impl UnsafeUnpin for FloatingHeaderSnapConfiguration
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