printPretty method

void printPretty([
  1. int space = 2
])

Implementation

void printPretty([int space = 2]) {
  if (this is Map || this is List) {
    print(toStringifyPretty(space));
  } else {
    print(toString());
  }
}