restorationId property
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.
Implementation
final String? restorationId;