LDValueType enum Null safety

Describes the type of an LDValue. These correspond to the standard types in JSON.

Constants

ARRAY → const LDValueType

The value is an array.

const LDValueType(4)
BOOLEAN → const LDValueType

The value is a boolean.

const LDValueType(1)
NULL → const LDValueType

The value is null.

const LDValueType(0)
NUMBER → const LDValueType

The value is a number.

JSON does not have separate types for integers and floating-point values, but you can convert to either.

const LDValueType(2)
OBJECT → const LDValueType

The value is an object (map).

const LDValueType(5)
STRING → const LDValueType

The value is a string.

const LDValueType(3)
values → const List<LDValueType>

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

const List<LDValueType>

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