max method
Returns the largest value of all elements
Example:
[9, 42, 3].max(); // 42
Implementation
int? max() => maximumBy((a, b) => a.compareTo(b));
Returns the largest value of all elements
Example:
[9, 42, 3].max(); // 42
int? max() => maximumBy((a, b) => a.compareTo(b));