getWhere method
Implementation
X? getWhere(bool Function(X element) where) {
X? value;
try {
value = firstWhere((element) => where(element));
} catch (e) {
value = null;
}
return value;
}
X? getWhere(bool Function(X element) where) {
X? value;
try {
value = firstWhere((element) => where(element));
} catch (e) {
value = null;
}
return value;
}