printPretty method

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

Implementation

Future<void> printPretty([int space = 2]) async {
  dynamic data_ = await this;
  if (data_ is Map || data_ is List) {
    print(JsonEncoder.withIndent(" " * space).convert(data_));
  } else {
    print(data_.toString());
  }
}