StateStorage extension
- on
Properties
- exists → bool
-
Available on State, provided by the StateStorage extension
Returns status of state file i.e. exists or notno setter - stateFile → File
-
Available on State, provided by the StateStorage extension
Actual state Fileno setter - stateFilePath → String
-
Available on State, provided by the StateStorage extension
Path to stateFileno setter - stateInfo → StateData?
-
Available on State, provided by the StateStorage extension
Returns current StateData if existsno setter
Methods
-
deleteStateFile(
{dynamic onDoesntExists()? = onStateDoesntExist, dynamic onSuccessfullyDeleted()? = onSuccessfullyStateDeleted}) → void -
Available on State, provided by the StateStorage extension
Deletes the current stateFile -
saveStateData(
{required StateData stateData, dynamic onSuccessfullySaved()? = onSuccessfullyStateSaved}) → StateData -
Available on State, provided by the StateStorage extension
This function is idempotent Saves thestateDatato stateFile