InspectOptions class

Option which can be specified when performing {@linkcode Deno.inspect}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

InspectOptions({bool? colors, bool? compact, num? depth, num? breakLength, bool? escapeSequences, num? iterableLimit, bool? showProxy, bool? sorted, bool? trailingComma, bool? getters, bool? showHidden, num? strAbbreviateSize})
factory

Properties

breakLength num?

Available on InspectOptions, provided by the InspectOptions$Typings extension

The maximum length for an inspection to take up a single line.
getter/setter pair
colors bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Stylize output with ANSI colors.
getter/setter pair
compact bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Try to fit more than one entry of a collection on the same line.
getter/setter pair
depth num?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Traversal depth for nested objects.
getter/setter pair
escapeSequences bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Whether or not to escape sequences.
getter/setter pair
getters bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Evaluate the result of calling getters.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
iterableLimit num?

Available on InspectOptions, provided by the InspectOptions$Typings extension

The maximum number of iterable entries to print.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showHidden bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Show an object's non-enumerable properties.
getter/setter pair
showProxy bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Show a Proxy's target and handler.
getter/setter pair
sorted bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Sort Object, Set and Map entries by key.
getter/setter pair
strAbbreviateSize num?

Available on InspectOptions, provided by the InspectOptions$Typings extension

The maximum length of a string before it is truncated with an ellipsis.
getter/setter pair
trailingComma bool?

Available on InspectOptions, provided by the InspectOptions$Typings extension

Add a trailing comma for multiline collections.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited