SingleOrDefaultExtension<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
singleOrDefault(
{required T defaultValue}) → T -
Returns the single element in the iterable, or a
defaultValue
if no such element exists.
defaultValue
if no
such element exists.