TrySingleWhereOrDefaultExtension<T> extension

on

Methods

trySingleWhereOrDefault(bool condition(T element), {T defaultValue}) → T
Returns the single element in the iterable matching a condition, or a defaultValue if no such element exists. [...]