addAnnotatedBlock method

void addAnnotatedBlock(
  1. String start,
  2. String end,
  3. List<NamedLocation> namedLocations,
  4. void body(), {
  5. bool endWithNewline = true,
})

Implementation

void addAnnotatedBlock(
  String start,
  String end,
  List<NamedLocation> namedLocations,
  void Function() body, {
  bool endWithNewline = true,
}) {
  printlnAnnotated(start, namedLocations);
  _addBlockBodyAndEnd(end, body, endWithNewline, '$_indent  ');
}