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