E? firstWhere<E>( Iterable<E> list, bool Function(E element) test, ) { for (E element in list) { if (test(element)) return element; } return null; }