lastOrNull method
T?
lastOrNull()
Returns the last element of this iterable, or null
if the iterable is empty.
Implementation
T? lastOrNull() => IterableExtensions(this).lastOrNull;
Returns the last element of this iterable, or null
if the iterable is empty.
T? lastOrNull() => IterableExtensions(this).lastOrNull;