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
Source§fn clone(&self) -> KeepAliveParentData
fn clone(&self) -> KeepAliveParentData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeepAliveParentData
Source§impl Debug for KeepAliveParentData
impl Debug for KeepAliveParentData
Source§impl Default for KeepAliveParentData
impl Default for KeepAliveParentData
Source§fn default() -> KeepAliveParentData
fn default() -> KeepAliveParentData
Returns the “default value” for a type. Read more
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