restorationId property
final
Restoration ID to save and restore the scroll offset of the scrollable.
If a restoration id is provided, the scrollable will persist its current scroll offset and restore it during state restoration.
The scroll offset 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.
Internally, the TwoDimensionalScrollable will introduce a RestorationScope that will be assigned this value. The two Scrollables within will then be given unique IDs within this scope.
Implementation
final String? restorationId;