ExtendedSliverFillViewport constructor

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

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

Implementation

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