singleWhere method
- bool test(
- T
- {T orElse(
override
Gets the single element that satisfies the given predicate test
. If none
are found, it calls the orElse
function if provided.
Implementation
@override
T singleWhere(bool Function(T) test, {T Function()? orElse}) =>
_items.singleWhere(test, orElse: orElse);