SliverFillViewport constructor Null safety

const SliverFillViewport(
  1. {Key? key,
  2. required SliverChildDelegate delegate,
  3. double viewportFraction = 1.0,
  4. bool padEnds = true}
)

Creates a sliver whose box children that each fill the viewport.

Implementation

const SliverFillViewport({
  super.key,
  required this.delegate,
  this.viewportFraction = 1.0,
  this.padEnds = true,
}) : assert(viewportFraction != null),
     assert(viewportFraction > 0.0),
     assert(padEnds != null);