double shortestSide

The lesser of the magnitudes of the width and the height of this rectangle.

Source

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