max method Null safety
Returns the largest element or null
if there are no elements.
Implementation
E? max() {
final self = this;
return self != null && self.isNotEmpty ? self.reduce(math.max) : null;
}
Returns the largest element or null
if there are no elements.
E? max() {
final self = this;
return self != null && self.isNotEmpty ? self.reduce(math.max) : null;
}