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