ConstObjectImpl class
Implementation of a constant object.
This class represents objects created with constant constructors and provides typed access to their properties.
- Inheritance
-
- Object
- Constant
- ConstObject
- ConstObjectImpl
Constructors
Properties
-
constructorArguments
→ List<
Expression> -
The constructor arguments used to create the constant.
final
- constructorName → String?
-
The name of the constructor used to create the constant.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isBool → bool
-
Whether this constant represents a boolean value.
no setterinherited
- isDouble → bool
-
Whether this constant represents a double value.
no setterinherited
- isEnumValue → bool
-
Whether this constant represents an enum value.
no setterinherited
- isFunctionReference → bool
-
Whether this constant represents a function reference.
no setterinherited
- isInt → bool
-
Whether this constant represents an integer value.
no setterinherited
- isInvalid → bool
-
Whether this constant represents an invalid constant.
no setterinherited
- isList → bool
-
Whether this constant represents a list.
no setterinherited
- isMap → bool
-
Whether this constant represents a map.
no setterinherited
- isNull → bool
-
Whether this constant represents null.
no setterinherited
- isNum → bool
-
Whether this constant represents a numeric value.
no setterinherited
- isObject → bool
-
Whether this constant represents an object.
no setterinherited
- isSet → bool
-
Whether this constant represents a set.
no setterinherited
- isString → bool
-
Whether this constant represents a string value.
no setterinherited
- isSymbol → bool
-
Whether this constant represents a symbol.
no setterinherited
- isType → bool
-
Whether this constant represents a type reference.
no setterinherited
- literalValue → Object?
-
The literal Dart value represented by this constant.
no setteroverride
-
positionalNames
→ Map<
int, String> -
Mapping of positional parameter indices to names.
final
-
props
→ Map<
String, Constant?> -
The properties of the constant object.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → DartType
-
The type of the constant object.
final
Methods
-
construct(
ArgumentList args, ConstantEvaluator evaluator, [String? name]) → ConstObjectImpl - Creates a new constant object by applying constructor arguments to this object.
-
get(
String key) → Constant? -
Gets a property value by name.
inherited
-
getBool(
String key) → ConstBool? -
Gets a boolean property by name.
override
-
getDouble(
String key) → ConstDouble? -
Gets a double property by name.
override
-
getEnumValue(
String key) → ConstEnumValue? -
Gets an enum value property by name.
override
-
getFunctionReference(
String key) → ConstFunctionReference? -
Gets a function reference property by name.
override
-
getInt(
String key) → ConstInt? -
Gets an integer property by name.
override
-
getList(
String key) → ConstList? -
Gets a list property by name.
override
-
getMap(
String key) → ConstMap? -
Gets a map property by name.
override
-
getNum(
String key) → ConstNum? -
Gets a numeric property by name.
override
-
getObject(
String key) → ConstObject? -
Gets an object property by name.
override
-
getSet(
String key) → ConstSet? -
Gets a set property by name.
override
-
getString(
String key) → ConstString? -
Gets a string property by name.
override
-
getTypeRef(
String key) → ConstType? -
Gets a type reference property by name.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override