clearAll static method

void clearAll()

Clear all trees from Fimber.

Implementation

static void clearAll() {
  // un-plant each tree
  _trees.values
      .toSet()
      .fold<List<LogTree>>(<LogTree>[], (buildList, newList) {
        buildList.addAll(newList);
        return buildList;
      })
      .toSet()
      .forEach(unplantTree);
  _trees.clear();
}