RenderSliverFillViewport constructor Null safety

RenderSliverFillViewport(
  1. {required RenderSliverBoxChildManager childManager,
  2. double viewportFraction = 1.0}
)

Creates a sliver that contains multiple box children that each fill the viewport.

The childManager argument must not be null.

Implementation

RenderSliverFillViewport({
  required super.childManager,
  double viewportFraction = 1.0,
}) : assert(viewportFraction != null),
     assert(viewportFraction > 0.0),
     _viewportFraction = viewportFraction;