navigator property
NavigatorState
get
navigator
Access to the NavigatorState associated with this BuildContext for easier navigation calls.
Implementation
NavigatorState get navigator => Navigator.of(this);