maxBoxHeight static method

double maxBoxHeight({
  1. required int? sizeByItem,
  2. required int matchers,
  3. required double? maxBoxHeight,
})

Implementation

static double maxBoxHeight({
  required int? sizeByItem,
  required int matchers,
  required double? maxBoxHeight,
}) {
  if (maxBoxHeight != null) return maxBoxHeight;
  if (sizeByItem != null) return 60.0 * sizeByItem;
  return 60.0 * ((matchers > 3) ? 4 : matchers);
}