printBlock method

String printBlock(
  1. Iterable<String> items
)

Implementation

String printBlock(Iterable<String> items) {
  return items.isNotEmpty ? ' {\n${items.join('\n')}\n}' : '';
}