group<T> static method

Future<T> group<T>(
  1. Future<T> body()
)

Runs body with the output indented one extra level.

Implementation

static Future<T> group<T>(Future<T> Function() body) async {
  indentLevel++;
  try {
    return await body();
  } finally {
    indentLevel--;
  }
}