firstWhereNullable method

E? firstWhereNullable(
  1. bool test(
    1. E element
    )
)

Implementation

E? firstWhereNullable(bool Function(E element) test) {
  for (E element in this) {
    if (test(element)) return element;
  }
  return null;
}