SingleOrDefaultExtension<T> extension

on

Methods

singleOrDefault({required T defaultValue}) → T
Returns the single element in the iterable, or a defaultValue if no such element exists.