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