persistOn property

PersistOn? persistOn
getter/setter pair

Enum to determine when to persist the state:

  • null: the state is persisted on each change. This is the default case.
  • PersistOn.disposed: The state is persisted one time when the state is disposed.
  • PersistOn.manualPersist: The state is persisted manually using Injected.persistState method.

Implementation

PersistOn? persistOn;