maybeRead<T> method
T?
maybeRead<T>()
Returns the read value if it exists otherwise null.
Implementation
T? maybeRead<T>() {
try {
return read<T>();
} on ProviderNotFoundException {
return null;
}
}