min method

double? min()

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

Example:

[17.0, 13.0, 92.0].min(); // 13.0

Implementation

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