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