storageContext property

BuildContext get storageContext

The BuildContext that should be used when searching for a PageStorage.

This context is typically the context of the scrollable widget itself. In particular, it should involve any GlobalKeys that are dynamically created as part of creating the scrolling widget, since those would be different each time the widget is created.

Implementation

// TODO(goderbauer): Deprecate this when state restoration supports all features of PageStorage.
BuildContext get storageContext;