pub struct KeepAliveParentData {
pub keep_alive: bool,
/* private fields */
}Expand description
Parent data structure used by RenderSliverWithKeepAliveMixin.
Flutter’s KeepAliveParentDataMixin: the half a parent data embeds and answers from
ParentData::provide, which is how KeepAlive finds it.
Fields§
§keep_alive: boolWhether to keep the child alive even when it is no longer visible.
Implementations§
Source§impl KeepAliveParentData
impl KeepAliveParentData
Sourcepub const fn new() -> KeepAliveParentData
pub const fn new() -> KeepAliveParentData
Parent data that does not keep its child alive.
Sourcepub fn kept_alive(&self) -> bool
pub fn kept_alive(&self) -> bool
Whether the widget is currently being kept alive, i.e. has
keep_alive set to true and is offscreen.
Trait Implementations§
Source§impl Clone for KeepAliveParentData
impl Clone for KeepAliveParentData
impl Copy for KeepAliveParentData
Source§impl Debug for KeepAliveParentData
impl Debug for KeepAliveParentData
Auto Trait Implementations§
impl Freeze for KeepAliveParentData
impl RefUnwindSafe for KeepAliveParentData
impl Send for KeepAliveParentData
impl Sync for KeepAliveParentData
impl Unpin for KeepAliveParentData
impl UnsafeUnpin for KeepAliveParentData
impl UnwindSafe for KeepAliveParentData
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