replaceRoot method

  1. @override
void replaceRoot(
  1. String? path
)
override

Implementation

@override
void replaceRoot(String? path) {
  navStack.clear();

  if (path == null) {
    navStack.add(initialDartBoardPath);
  } else {
    navStack.add(DartBoardPath(path, initialPath, showAnimation: false));
  }

  notifyListeners();
}