printPretty method

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

Implementation

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