InstanceConstant class final
A constant instance of a class with its fields
Only as far as they can also be represented by constants. This is more or less the same as a MapConstant.
Constructors
-
InstanceConstant.new({required Map<
String, Constant> fields}) -
Creates an InstanceConstant object with the given
fields
.const -
InstanceConstant.fromJson(Map<
String, Object?> json, List<Constant> constants) -
Creates an InstanceConstant object from JSON.
factory
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
toValue(
) → Object? -
Converts this Constant to the value it represents.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override