SingleOrNull<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
singleOrNull(
[bool test(T)?]) → T? -
Available on Iterable<
Returns the single element of aT> , provided by the SingleOrNull extensionlength = 1
list or null otherwise.