toWidthHeightPairAccrToAxis method

(double?, double?) toWidthHeightPairAccrToAxis(
  1. Axis axis, [
  2. double? other
])

Implementation

(double?, double?) toWidthHeightPairAccrToAxis(Axis axis, [double? other]) {
  if (axis == Axis.horizontal) return (this, other);
  return (other, this);
}