pretifyValue function

String pretifyValue(
  1. dynamic value
)

Implementation

String pretifyValue(value) {
  if (value is Map) return json.encode(value);
  if (value is List) return json.encode(value);
  if (value is String) return '"$value"';

  return value.toString();
}