Scope enum

Lexical scoping elements within this stringer, necessary to insert the appropriate separator characters (ie. commas and colons) and to detect nesting errors.

Implemented types

Constants

DANGLING_KEY → const Scope

An object whose most recent element is a key. The next element must be a value.

const Scope(3)
EMPTY_ARRAY → const Scope

An array with no elements requires no separators or newlines before it is closed.

const Scope(0)
EMPTY_OBJECT → const Scope

An object with no keys or values requires no separators or newlines before it is closed.

const Scope(2)
NONEMPTY_ARRAY → const Scope

A array with at least one value requires a comma and newline before the next element.

const Scope(1)
NONEMPTY_OBJECT → const Scope

An object with at least one name/value pair requires a comma and newline before the next element.

const Scope(4)
NULL → const Scope

A special bracketless array needed by JSONStringer.join() and JSONObject.quote() only. Not used for JSON encoding.

const Scope(5)
values → const List<Scope>

A constant List of the values in this enum, in order of their declaration.

const List<Scope>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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