minOrNull property
T?
minOrNull
Returns the element with minimum value.
If this
is empty, the result of invoking is null
.
Implementation
T? get minOrNull {
if (this.isEmpty) {
return null;
}
return _sorted.first;
}