min method
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));
}
Returns the lowest value of all elements
If collection is empty this returns null
.
Example:
[17, 13, 92].min(); // 13
int? min() {
return minBy((a, b) => a.compareTo(b));
}