toStringifyPretty method

String toStringifyPretty([
  1. int space = 4
])

Implementation

String toStringifyPretty([int space = 4]) {
  if (this is Map || this is List) {
    return JsonEncoder.withIndent(" " * space).convert(this);
  } else {
    return toString();
  }
}