viewportFraction property

double viewportFraction

The fraction of the viewport that each child should fill in the main axis.

If this fraction is less than 1.0, more than one child will be visible at once. If this fraction is greater than 1.0, each child will be larger than the viewport in the main axis.

Implementation

double get viewportFraction => _viewportFraction;
void viewportFraction=(double value)

Implementation

set viewportFraction(double value) {
  if (_viewportFraction == value) {
    return;
  }
  _viewportFraction = value;
  markNeedsLayout();
}