Encoder<T> typedef

Encoder<T> = FutureOr<Object?> Function(T t)

Convert T to a value of type that can be persisted in Storage. This is used in Storage.write.

Implementation

typedef Encoder<T> = FutureOr<Object?> Function(T t);