push method

  1. @override
void push(
  1. String path, {
  2. bool expanded = false,
})
override

Push a route onto the stack expanded will push sub-paths (e.g. /a/b/c will push /a, /a/b, /a/b/c)

Implementation

@override
void push(String path, {bool expanded = false}) {
  if (expanded) {
    _pushExpandedPath(path);
  } else {
    _addPath(DartBoardPath(path, initialPath));
  }
  notifyListeners();
}