navigator property

NavigatorState get navigator

Allow to get the NavigatorState from the current BuildContext.

Implementation

NavigatorState get navigator {
  return Navigator.of(this);
}