firstMatchOrNull method
Implementation
T? firstMatchOrNull(bool Function(T model) matcher) {
for (var model in this) {
if (matcher(model)) {
return model;
}
}
return null;
}
T? firstMatchOrNull(bool Function(T model) matcher) {
for (var model in this) {
if (matcher(model)) {
return model;
}
}
return null;
}