StringConstant class final
Represents a constant string value.
- Inheritance
-
- Object
- Constant
- PrimitiveConstant<
String> - StringConstant
Constructors
- StringConstant.new(String value)
-
Creates a StringConstant object with the given string
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