SingleWhereOrDefaultExtension<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
singleWhereOrDefault(
bool condition(T element), {required T defaultValue}) → T -
Returns the single element in the iterable matching a
condition
, or adefaultValue
if no such element exists.