firstWhereOrNull method
Implementation
T? firstWhereOrNull(bool Function(T element) predicate) {
try {
return isEmpty ? null : firstWhere(predicate, orElse: null);
} catch (e) {
return null;
}
}
T? firstWhereOrNull(bool Function(T element) predicate) {
try {
return isEmpty ? null : firstWhere(predicate, orElse: null);
} catch (e) {
return null;
}
}