getMaxExtent method

double getMaxExtent(
  1. BoxConstraints constraints
)

Gets the maximum extent in the current direction.

Implementation

double getMaxExtent(BoxConstraints constraints) {
  return directionIsXAxis ? constraints.maxWidth : constraints.maxHeight;
}