RenderSliverFloatingPersistentHeader constructor Null safety

RenderSliverFloatingPersistentHeader(
  1. {RenderBox? child,
  2. TickerProvider? vsync,
  3. FloatingHeaderSnapConfiguration? snapConfiguration,
  4. OverScrollHeaderStretchConfiguration? stretchConfiguration,
  5. required PersistentHeaderShowOnScreenConfiguration? showOnScreenConfiguration}
)

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({
  super.child,
  TickerProvider? vsync,
  this.snapConfiguration,
  super.stretchConfiguration,
  required this.showOnScreenConfiguration,
}) : _vsync = vsync;