Skip to main content

SliverWithKeepAliveWidget

Trait SliverWithKeepAliveWidget 

Source
pub trait SliverWithKeepAliveWidget: RenderObjectWidget{ }
Expand description

A base class for slivers that have KeepAlive children.

See also:

  • KeepAlive, which marks whether its child widget should be kept alive.
  • SliverChildBuilderDelegate and SliverChildListDelegate, slivers which make use of the keep alive functionality through the addAutomaticKeepAlives property.
  • SliverList, a sliver widget that is commonly wrapped with KeepAlive widgets to preserve its sliver child subtrees.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§