toReadableString function

String toReadableString(
  1. dynamic x
)

@param x @returns {string}

Implementation

String toReadableString(dynamic x) {
  if (x is BigInt) {
    return "BigInt($x)";
  } else if (x is Map) {
    return jsonEncode(makeBigIntToString(x));
  } else {
    return jsonEncode(x);
  }
}