restore

abstract suspend fun restore(): T?

restore function should restore the state from the storage. It could be a file, a bundle on Android, or some other place. State is restored before the store starts, so it is not advised to suspend in this function for very long periods of time. If this function returns null, the state will not be restored (there is nothing to restore).