SliverPersistentHeader constructor

const SliverPersistentHeader({
  1. Key? key,
  2. required SliverPersistentHeaderDelegate delegate,
  3. bool pinned = false,
  4. bool floating = false,
})

Creates a sliver that varies its size when it is scrolled to the start of a viewport.

Implementation

const SliverPersistentHeader({
  super.key,
  required this.delegate,
  this.pinned = false,
  this.floating = false,
});