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