minOrDefault method

int minOrDefault(
  1. int selector(
    1. T
    ),
  2. int defaultValue
)

Implementation

int minOrDefault(int Function(T) selector, int defaultValue) {
  return min(selector) ?? defaultValue;
}