getNavigator method

  1. @protected
NavigatorState getNavigator({
  1. bool root = false,
})

Implementation

@protected
NavigatorState getNavigator({bool root = false}) {
  if (root && !ControlScope.root.isInitialized) {
    return Navigator.of(context, rootNavigator: true);
  }

  return Navigator.of(getContext(root: root));
}