pub struct RenderSliverFloatingPersistentHeaderData {
pub snap_configuration: Option<FloatingHeaderSnapConfiguration>,
pub show_on_screen_configuration: Option<PersistentHeaderShowOnScreenConfiguration>,
/* private fields */
}Expand description
Flutter’s RenderSliverFloatingPersistentHeader fields.
Fields§
§snap_configuration: Option<FloatingHeaderSnapConfiguration>Defines the parameters used to snap (animate) the floating header in and out of view.
If this is None then the floating header does not snap.
show_on_screen_configuration: Option<PersistentHeaderShowOnScreenConfiguration>Specifies the persistent header’s behavior when show_on_screen is called.
If set to None, the persistent header will delegate the show_on_screen call to its
parent render object.
Implementations§
Source§impl RenderSliverFloatingPersistentHeaderData
impl RenderSliverFloatingPersistentHeaderData
Sourcepub fn new(
vsync: Option<TickerProviderRef>,
snap_configuration: Option<FloatingHeaderSnapConfiguration>,
show_on_screen_configuration: Option<PersistentHeaderShowOnScreenConfiguration>,
) -> RenderSliverFloatingPersistentHeaderData
pub fn new( vsync: Option<TickerProviderRef>, snap_configuration: Option<FloatingHeaderSnapConfiguration>, show_on_screen_configuration: Option<PersistentHeaderShowOnScreenConfiguration>, ) -> RenderSliverFloatingPersistentHeaderData
Creates the state of a floating persistent header that has not been laid out.
Auto Trait Implementations§
impl !RefUnwindSafe for RenderSliverFloatingPersistentHeaderData
impl !Send for RenderSliverFloatingPersistentHeaderData
impl !Sync for RenderSliverFloatingPersistentHeaderData
impl !UnwindSafe for RenderSliverFloatingPersistentHeaderData
impl Freeze for RenderSliverFloatingPersistentHeaderData
impl Unpin for RenderSliverFloatingPersistentHeaderData
impl UnsafeUnpin for RenderSliverFloatingPersistentHeaderData
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