scrollRestoration property

bool scrollRestoration
final

Whether automatic scroll position restoration is enabled.

When true (the default), overrides window.history.scrollRestoration to 'manual' and automatically restores scroll coordinates on popstate transitions while resetting scroll to top (0, 0) or fragment targets on forward navigations.

Implementation

final bool scrollRestoration;