read<P> method
Null safety
- String restorationId
Returns the value of type P
that is currently stored in the bucket under
the provided restorationId
.
Returns null if nothing is stored under that id. Throws, if the value
stored under the ID is not of type P
.
See also:
Implementation
P? read<P>(String restorationId) {
assert(_debugAssertNotDisposed());
assert(restorationId != null);
return _rawValues[restorationId] as P?;
}