dump static method

String dump(
  1. dynamic obj
)

Implementation

static String dump(dynamic obj) {
  if (cast<Iterable>(obj) != null) {
    obj = _asList(obj);
  }
  var encoder = JsonEncoder.withIndent('    ', (o) => _toEncodable(o));
  var json = encoder.convert(obj);
  return json.replaceAll('"', '');
}