singleWhere method

Future<E> singleWhere(
  1. bool test(
    1. E e
    ), {
  2. E orElse()?,
})

Implementation

Future<E> singleWhere(bool test(E e), {E Function()? orElse}) async {
  return (await this).singleWhere(test, orElse: orElse);
}