firstOr method
T
firstOr(
- T orElse
Returns the first element, or orElse
if the set is empty.
Implementation
T firstOr(T orElse) => isEmpty ? orElse : first;
Returns the first element, or orElse
if the set is empty.
T firstOr(T orElse) => isEmpty ? orElse : first;