InstanceRef class

InstanceRef is a reference to an Instance.

Inheritance
Implementers

Constructors

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})

Properties

allocationLocation InstanceRef?
The stack trace associated with the allocation of a ReceivePort.
getter/setter pair
classRef ClassRef?
Instance references always include their class.
getter/setter pair
closureContext ContextRef?
The context associated with a Closure instance.
getter/setter pair
closureFunction FuncRef?
The function associated with a Closure instance.
getter/setter pair
debugName String?
A name associated with a ReceivePort used for debugging purposes.
getter/setter pair
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.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
id String?
A unique identifier for an Object. Passed to the getObject RPC to load this Object.
getter/setter pairinherited
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().
getter/setter pair
json Map<String, dynamic>?
getter/setter pairinherited
kind String?
What kind of instance is this?
getter/setter pair
label String?
The label associated with a UserTag.
getter/setter pair
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.
getter/setter pair
name String?
The name of a Type instance.
getter/setter pair
parameterizedClass ClassRef?
The parameterized class of a type parameter.
getter/setter pair
parameters List<Parameter>?
The list of parameter types for a function.
getter/setter pair
pattern InstanceRef?
The pattern of a RegExp instance.
getter/setter pair
portId int?
The port ID for a ReceivePort.
getter/setter pair
returnType InstanceRef?
The return type of a function.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setteroverride
typeClass ClassRef?
The corresponding Class if this Type has a resolved typeClass.
getter/setter pair
typeParameters List<InstanceRef>?
The type parameters for a function.
getter/setter pair
valueAsString String?
The value of this instance as a string.
getter/setter pair
valueAsStringIsTruncated bool?
The valueAsString for String references may be truncated. If so, this property is added with the value 'true'.
getter/setter pair

Methods

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

Operators

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

Static Methods

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