IntConstant class final
Represents a constant integer value.
- Inheritance
-
- Object
- Constant
- PrimitiveConstant<
int> - IntConstant
Constructors
- IntConstant.new(int value)
-
Creates an IntConstant object with the given integer
value
.const
Properties
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