toStringifyPretty method

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

Implementation

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