PageMetrics constructor

PageMetrics({@required double minScrollExtent, @required double maxScrollExtent, @required double pixels, @required double viewportDimension, @required AxisDirection axisDirection, @required double viewportFraction })

Creates an immutable snapshot of values associated with a PageView.

Implementation

PageMetrics({
  @required double minScrollExtent,
  @required double maxScrollExtent,
  @required double pixels,
  @required double viewportDimension,
  @required AxisDirection axisDirection,
  @required this.viewportFraction,
}) : super(
       minScrollExtent: minScrollExtent,
       maxScrollExtent: maxScrollExtent,
       pixels: pixels,
       viewportDimension: viewportDimension,
       axisDirection: axisDirection,
     );