FixedExtentMetrics constructor

FixedExtentMetrics({@required double minScrollExtent, @required double maxScrollExtent, @required double pixels, @required double viewportDimension, @required AxisDirection axisDirection, @required int itemIndex })

Creates an immutable snapshot of values associated with a ListWheelScrollView.

Implementation

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