navigator property
NavigatorState
navigator
Returns The state from the closest instance of this class that encloses the given context.
It is used for routing in flutter
Implementation
NavigatorState get navigator => Navigator.of(this);