nest method

void nest(
  1. int count,
  2. Function func
)

Scoped increase of the indent level.

For the execution of func the indentation will be incremented by the given amount.

Implementation

void nest(int count, Function func) {
  inc(count);
  func(); // ignore: avoid_dynamic_calls
  dec(count);
}