Decoder<T> typedef

Decoder<T> = FutureOr<T> Function(Object? o)

Convert storage persisted type to T. This is used in Storage.read.

Implementation

typedef Decoder<T> = FutureOr<T> Function(Object? o);