SliverConstraints constructor

const SliverConstraints({@required AxisDirection axisDirection, @required GrowthDirection growthDirection, @required ScrollDirection userScrollDirection, @required double scrollOffset, @required double overlap, @required double remainingPaintExtent, @required double crossAxisExtent, @required AxisDirection crossAxisDirection, @required double viewportMainAxisExtent, @required double remainingCacheExtent, @required double cacheOrigin })

Creates sliver constraints with the given information.

All of the argument must not be null.

Implementation

const SliverConstraints({
  @required this.axisDirection,
  @required this.growthDirection,
  @required this.userScrollDirection,
  @required this.scrollOffset,
  @required this.overlap,
  @required this.remainingPaintExtent,
  @required this.crossAxisExtent,
  @required this.crossAxisDirection,
  @required this.viewportMainAxisExtent,
  @required this.remainingCacheExtent,
  @required this.cacheOrigin,
}) : assert(axisDirection != null),
     assert(growthDirection != null),
     assert(userScrollDirection != null),
     assert(scrollOffset != null),
     assert(overlap != null),
     assert(remainingPaintExtent != null),
     assert(crossAxisExtent != null),
     assert(crossAxisDirection != null),
     assert(viewportMainAxisExtent != null),
     assert(remainingCacheExtent != null),
     assert(cacheOrigin != null);