formatJsonLeaf function

String formatJsonLeaf(
  1. dynamic value
)

Text used for a non-expandable JSON value in the tree.

Implementation

String formatJsonLeaf(dynamic value) {
  if (value == null) return 'null';
  if (value is String) return '"$value"';
  return value.toString();
}