decode method
Decodes a value of storage type TStore
back to type T
.
Returns null if the stored value is null or cannot be decoded.
Implementation
@override
Duration? decode(int? stored) {
if (stored == null) return null;
return Duration(microseconds: stored);
}