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