converts the stack to a list of paths
@override List<String> toPathList() { final paths = <String>[]; for (final item in _items) { paths.addAll(item.toPathList()); } return paths; }