RenderSliverFloatingPersistentHeader constructor

RenderSliverFloatingPersistentHeader({RenderBox child, FloatingHeaderSnapConfiguration snapConfiguration })

Creates a sliver that shrinks when it hits the start of the viewport, then scrolls off, and comes back immediately when the user reverses the scroll direction.

Implementation

RenderSliverFloatingPersistentHeader({
  RenderBox child,
  FloatingHeaderSnapConfiguration snapConfiguration,
}) : _snapConfiguration = snapConfiguration, super(child: child);