StateStorage extension

on

Properties

exists bool

Available on State, provided by the StateStorage extension

Returns status of state file i.e. exists or not
no setter
stateFile File

Available on State, provided by the StateStorage extension

Actual state File
no setter
stateFilePath String

Available on State, provided by the StateStorage extension

Path to stateFile
no setter
stateInfo StateData?

Available on State, provided by the StateStorage extension

Returns current StateData if exists
no 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 the stateData to stateFile