firstOrNull method
Implementation
E? firstOrNull(bool test(E element)) {
for (var e in this) {
if (test(e)) {
return e;
}
}
return null;
}
E? firstOrNull(bool test(E element)) {
for (var e in this) {
if (test(e)) {
return e;
}
}
return null;
}