JsonOptions class

Constructors

JsonOptions({String indent = ' ', int maxContentLength = 40, int maxLineLength = 80, int depth = 0, List<String> alwaysExpandKeys = const [], int minDepth = 1, String? path})
const

Properties

allowCompression bool
no setter
alwaysExpandKeys List<String>
Keys that will always be expanded.
final
baseIndent String
no setter
baseIndentSize int
no setter
depth int
The current nesting depth.
final
hashCode int
The hash code for this object.
no setterinherited
indent String
The character used for indentation.
final
maxContentLength int
Maximum length of a single entry.
final
maxLength int
no setter
maxLineLength int
Maximum length of an entire line.
final
minDepth int
The minimum depth that must be reached before compressing lines.
final
path String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? indent, int? maxContentLength, int? maxLineLength, int? depth, List<String>? alwaysExpandKeys, int? minDepth, String? path}) JsonOptions
Creates a copy with some parameters changed.
extendPath(String key) JsonOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldExpandKey(String key) bool
toString() String
A string representation of this object.
inherited

Operators

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