rootNavigator property

NavigatorState rootNavigator

shortcut for Navigator.of(context, rootNavigator: true)

Implementation

NavigatorState get rootNavigator => Navigator.of(this, rootNavigator: true);