restorationId property
final
Restoration ID to save and restore the state of the text field.
If non-null, the text field will persist and restore its current scroll offset and - if no controller has been provided - the content of the text field. If a controller has been provided, it is the responsibility of the owner of that controller to persist and restore it, e.g. by using a RestorableTextEditingController.
The state of this widget is persisted in a RestorationBucket claimed from the surrounding RestorationScope using the provided restoration ID.
See also:
- RestorationManager, which explains how state restoration works in Flutter.
Implementation
final String? restorationId;