A key can be used to persist the widget state in storage after the destruction and will be restored when recreated.
Each key with its value plus the ancestor chain of other PageStorageKeys need to be unique within the widget's closest ancestor PageStorage. To make it possible for a saved value to be found when a widget is recreated, the key's value must not be objects whose identity will change each time the widget is created.
- PageStorage, which is the closet ancestor for PageStorageKey.
- PageStorageKey(T value)
Creates a ValueKey that defines where PageStorage values will be saved.
- hashCode → int
The hash code for this object.
- runtimeType → Type
A representation of the runtime type of the object.
- value → T
The value to which this key delegates its operator==
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
A string representation of this object.
Object other) → bool
The equality operator.