min method

int? min()

Returns the lowest value of all elements If collection is empty this returns null.

Example:

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

Implementation

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