axisSize method

double axisSize(
  1. Axis axis
)

Gets the extent of this size on the given axis.

Implementation

double axisSize(Axis axis) {
  return axis == Axis.vertical ? height : width;
}