lastOrNull property
The last element, or null
if the iterable is empty.
Implementation
T? get lastOrNull {
if (isEmpty) return null;
return last;
}
The last element, or null
if the iterable is empty.
T? get lastOrNull {
if (isEmpty) return null;
return last;
}