singleWhereOrNull method
Implementation
T? singleWhereOrNull(bool Function(T element) judgeFunc) {
try {
return singleWhere(judgeFunc);
} catch (e) {
return null;
}
}
T? singleWhereOrNull(bool Function(T element) judgeFunc) {
try {
return singleWhere(judgeFunc);
} catch (e) {
return null;
}
}