rootContext property
BuildContext
rootContext
Get the root BuildContext that is not affected by the build of the page.
ページのビルドに影響されないルートのBuildContextを取得します。
Implementation
BuildContext get rootContext {
final navigator = Navigator.of(this, rootNavigator: true);
return navigator.context;
}