StateOptions

data class StateOptions(val save: Boolean = false, val restore: Boolean = false, val clear: Boolean = false)(source)

A holder for the state management configuration for a Navigator.resetRoot call.

Constructors

Link copied to clipboard
constructor(save: Boolean = false, restore: Boolean = false, clear: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether any previously saved state for the new root Screen should be cleared. Will be cleared after any restore regardless of restore.

Link copied to clipboard

Whether any previously saved state for the new root Screen should be restored. If this is false or there is no previous state, the back stack will only contain the new root Screen.

Link copied to clipboard

Whether to save the current entry list. It can be restored by passing the current root Screen to Navigator.resetRoot with restoreState = true