indent static method

void indent(
  1. String text, {
  2. int spaces = 2,
})

Display indented text

Implementation

static void indent(String text, {int spaces = 2}) {
  final prefix = ' ' * spaces;
  stdout.writeln(prefix + text);
}