firstWhereNullable method
Implementation
T? firstWhereNullable(bool Function(T) test, {T Function()? orElse}) {
try {
return firstWhere(test);
} on StateError {
return null;
}
}
T? firstWhereNullable(bool Function(T) test, {T Function()? orElse}) {
try {
return firstWhere(test);
} on StateError {
return null;
}
}