getOrNull<T> method
T?
getOrNull<T>()
Implementation
T? getOrNull<T>() {
try {
return _values.singleWhere((element) => element is T);
} catch (e) {
return null;
}
}
T? getOrNull<T>() {
try {
return _values.singleWhere((element) => element is T);
} catch (e) {
return null;
}
}