firstWhere method

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

Implementation

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