minOrNull property
int?
get
minOrNull
A minimal element of the iterable, or null
it the iterable is empty.
Implementation
int? get minOrNull {
var iterator = this.iterator;
if (iterator.moveNext()) {
var value = iterator.current;
while (iterator.moveNext()) {
var newValue = iterator.current;
if (newValue < value) {
value = newValue;
}
}
return value;
}
return null;
}