findOne method
Find one element in cache
Implementation
S? findOne(bool Function(S item) predicate) {
try {
return values.firstWhere(predicate);
} on Error {
return null;
}
}
Find one element in cache
S? findOne(bool Function(S item) predicate) {
try {
return values.firstWhere(predicate);
} on Error {
return null;
}
}