PersistedData<DataT> constructor

const PersistedData<DataT>(
  1. DataT data, {
  2. String? destroyKey,
  3. DateTime? expireAt,
})

A state representation of how the data is persisted.

This includes the data itself, along with various metadata that should also be persisted.

Implementation

const PersistedData(this.data, {this.destroyKey, this.expireAt});