PrimitiveConstant<T extends Object> class sealed

Represents a constant value of a primitive type.

Inheritance
Implementers

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The underlying value of this constant.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(Map<Constant, int> constants) Map<String, Object?>
Converts this Constant object to a JSON representation.
override
toString() String
A string representation of this object.
inherited
toValue() Object?
Converts this Constant to the value it represents.
inherited
valueToJson() Map<String, Object?>
Converts this primitive constant to a JSON representation.

Operators

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