toStringifyPretty method

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

Implementation

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