asLines static method

void asLines(
  1. Map obj,
  2. dynamic lineCallback(
    1. String line
    ), [
  3. bool showValues = true
])

This will give you access to each lines in the callback function lineCallback. This can be useful to modify the output in any form.

Implementation

static void asLines(
  Map obj,
  Function(String line) lineCallback, [
  bool showValues = true,
]) {
  _growBranch('.', obj, false, const [], showValues, lineCallback);
}