firstWhereOrNull method
Implementation
T? firstWhereOrNull(bool Function(T element) judgeFunc) {
T? result;
for (T element in this) {
if (judgeFunc(element)) {
result = element;
break;
}
}
return result;
}
T? firstWhereOrNull(bool Function(T element) judgeFunc) {
T? result;
for (T element in this) {
if (judgeFunc(element)) {
result = element;
break;
}
}
return result;
}