literal function
Returns a pretty-printed representation of object
.
When possible, lines will be kept under _maxLineLength
. This isn't
guaranteed, since individual objects may have string representations that
are too long, but most lines will be less than _maxLineLength
long.
Iterables and Maps will only print their first _maxItems
elements or
key/value pairs, respectively.
Implementation
Iterable<String> literal(Object? object) => _prettyPrint(object, 0, {}, true);