fit static method

double fit(
  1. double shortestSide
)

Implementation

static double fit(double shortestSide) {
  final limit = shortestSide / 3;
  if (limit >= xxl) return xxl;
  if (limit >= xl) return xl;
  if (limit >= lg) return lg;
  if (limit >= md) return md;
  if (limit >= sm) return sm;
  if (limit >= xs) return xs;
  return none;
}