addBlock method

void addBlock(
  1. String start,
  2. String end,
  3. void body(), {
  4. bool endWithNewline = true,
})

Prints a block of text with the body indented one more level.

Implementation

void addBlock(String start, String end, void Function() body,
    {bool endWithNewline = true}) {
  println(start);
  _addBlockBodyAndEnd(end, body, endWithNewline, '$_indent  ');
}