singleWhere method

  1. @override
T singleWhere(
  1. Predicate<T> test, {
  2. T orElse()?,
})
override

Returns the single element that satisfies test.

Implementation

@override
T singleWhere(Predicate<T> test, {T Function()? orElse}) => _s.singleWhere(test, orElse: orElse);