rootNavigator property

NavigatorState rootNavigator

Returns the root navigator state.

context.rootNavigator is equivalent to widgets.Navigator.of with rootNavigator: true.

Implementation

widgets.NavigatorState get rootNavigator {
  return widgets.Navigator.of(this, rootNavigator: true);
}