IntConstant class final

Represents a constant integer value.

Inheritance

Constructors

IntConstant.new(int value)
Creates an IntConstant object with the given integer value.
const

Properties

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

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.
inherited
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.
override

Operators

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