decodeObjectOrNull<T> method
Decodes the data for the given key or id as a nullable object of type T
.
When the data is not null, this behaves like decodeObject.
Implementation
@override
T? decodeObjectOrNull<T>(String key, {int? id, Decodable<T>? using}) {
var d = decoders[key] ?? decoders[id];
return d?.clone().decodeObjectOrNull(using: using);
}