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