lastOr method
T?
lastOr([
- T? ifEmpty
Implementation
T? lastOr([T? ifEmpty]) {
if (this.isEmpty) return ifEmpty;
return this.last;
}
T? lastOr([T? ifEmpty]) {
if (this.isEmpty) return ifEmpty;
return this.last;
}