asTree static method

String asTree(
  1. Map obj,
  2. bool showValues
)

Outputs the entire tree, returning it as a string with line breaks.

Implementation

static String asTree(Map obj, bool showValues) {
  var tree = '';

  _growBranch('.', obj, false, const [], showValues, (line) {
    tree += line + '\n';
  });

  return tree;
}