navigator method

NavigatorState navigator({
  1. bool rootNavigator = false,
  2. bool nullOk = false,
})

The Navigator instance from the closest context.

Implementation

NavigatorState navigator({bool rootNavigator = false, bool nullOk = false}) {
  return Navigator.of(this, rootNavigator: rootNavigator);
}