navRoot property

NavigatorState get navRoot

Returns same as Navigator.of(context, rootNavigator: true).

Implementation

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