appendPath method

  1. @override
void appendPath(
  1. String path
)
override

Append to the current route (e.g. /b appended to /a = /a/b)

Implementation

@override
void appendPath(String path) {
  if (path == '/') return;
  if (navStack.isNotEmpty) {
    final last = navStack.last;
    _addPath(DartBoardPath(
        (last.path == '/' ? last.rootPath : last.path) + path, initialPath));
  }

  notifyListeners();
}