double shortestSide

The lesser of the width and the height.

Source

double get shortestSide {
  double w = width.abs();
  double h = height.abs();
  return w < h ? w : h;
}