pathToNodes function

List<String> pathToNodes (String path)

Take a path and return it in a List of node (String).

Implementation

List<String> pathToNodes(String path) =>
    path.split("/").where((e) => e.isNotEmpty).toList();