InstanceRef class

InstanceRef is a reference to an Instance.



InstanceRef({String? kind, int? identityHashCode, ClassRef? classRef, required String id, String? valueAsString, bool? valueAsStringIsTruncated, int? length, String? name, ClassRef? typeClass, ClassRef? parameterizedClass, InstanceRef? returnType, List<Parameter>? parameters, List<InstanceRef>? typeParameters, InstanceRef? pattern, FuncRef? closureFunction, ContextRef? closureContext, int? portId, InstanceRef? allocationLocation, String? debugName, String? label})


allocationLocation InstanceRef?
The stack trace associated with the allocation of a ReceivePort.
read / write
classRef ClassRef?
Instance references always include their class.
read / write
closureContext ContextRef?
The context associated with a Closure instance.
read / write
closureFunction FuncRef?
The function associated with a Closure instance.
read / write
debugName String?
A name associated with a ReceivePort used for debugging purposes.
read / write
fixedId bool?
Provided and set to true if the id of an Object is fixed. If true, the id of an Object is guaranteed not to change or expire. The object may, however, still be Collected.
read / writeinherited
hashCode int
The hash code for this object.
id String?
A unique identifier for an Object. Passed to the getObject RPC to load this Object.
read / writeinherited
identityHashCode int?
The identityHashCode assigned to the allocated object. This hash code is the same as the hash code provided in HeapSnapshot and CpuSample's returned by getAllocationTraces().
read / write
json Map<String, dynamic>?
read / writeinherited
kind String?
What kind of instance is this?
read / write
label String?
The label associated with a UserTag.
read / write
length int?
The number of (non-static) fields of a PlainInstance, or the length of a List, or the number of associations in a Map, or the number of codeunits in a String, or the total number of fields (positional and named) in a Record.
read / write
name String?
The name of a Type instance.
read / write
parameterizedClass ClassRef?
The parameterized class of a type parameter.
read / write
parameters List<Parameter>?
The list of parameter types for a function.
read / write
pattern InstanceRef?
The pattern of a RegExp instance.
read / write
portId int?
The port ID for a ReceivePort.
read / write
returnType InstanceRef?
The return type of a function.
read / write
runtimeType Type
A representation of the runtime type of the object.
type String
typeClass ClassRef?
The corresponding Class if this Type has a resolved typeClass.
read / write
typeParameters List<InstanceRef>?
The type parameters for a function.
read / write
valueAsString String?
The value of this instance as a string.
read / write
valueAsStringIsTruncated bool?
The valueAsString for String references may be truncated. If so, this property is added with the value 'true'.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.


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

Static Methods

parse(Map<String, dynamic>? json) InstanceRef?