toStringWithIndentation method

void toStringWithIndentation(
  1. StringBuffer result,
  2. int level
)

Implementation

void toStringWithIndentation(StringBuffer result, int level) {
  var indentation = StringBuffer();
  for (var i = 0; i < level; ++i) {
    indentation.write("__");
  }

  result.write(indentation.toString());
  result.write(_flexNodeStyle.toString());
  result.write(resultToString());

  result.write("$indentation]");
}