StateDescriptor<T> constructor

const StateDescriptor<T>({
  1. required String key,
  2. required T initialValue,
  3. bool shouldPersist = true,
  4. required T deserialize(
    1. String
    ),
  5. required String serialize(
    1. T
    ),
  6. String? description,
  7. required String streamName,
})

Implementation

const StateDescriptor({
  required this.key,
  required this.initialValue,
  this.shouldPersist = true,
  required this.deserialize,
  required this.serialize,
  this.description,
  required this.streamName,
});