min method

int? min()

Returns the lowest value of all elements

Example:

[17, 13, 92].min(); // 13

Implementation

int? min() {
  return minimumBy((a, b) => a.compareTo(b));
}