InstanceRef class Null safety

InstanceRef is a reference to an Instance.



InstanceRef({required String? kind, required int? identityHashCode, required ClassRef? classRef, required String id, String? valueAsString, bool? valueAsStringIsTruncated, int? length, String? name, ClassRef? typeClass, ClassRef? parameterizedClass, InstanceRef? pattern, FuncRef? closureFunction, ContextRef? closureContext, int? portId, InstanceRef? allocationLocation, String? debugName})


allocationLocation InstanceRef?
The stack trace associated with the allocation of a ReceivePort. [...]
@optional, read / write
classRef ClassRef?
Instance references always include their class.
read / write
closureContext ContextRef?
The context associated with a Closure instance. [...]
@optional, read / write
closureFunction FuncRef?
The function associated with a Closure instance. [...]
@optional, read / write
debugName String?
A name associated with a ReceivePort used for debugging purposes. [...]
@optional, 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.
@optional, read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, override
id String?
A unique identifier for an Object. Passed to the getObject RPC to load this Object.
read / write, inherited
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 / write, inherited
kind String?
What kind of instance is this?
read / write
length int?
The length of a List or the number of associations in a Map or the number of codeunits in a String. [...]
@optional, read / write
name String?
The name of a Type instance. [...]
@optional, read / write
parameterizedClass ClassRef?
The parameterized class of a type parameter: [...]
@optional, read / write
pattern InstanceRef?
The pattern of a RegExp instance. [...]
@optional, read / write
portId int?
The port ID for a ReceivePort. [...]
@optional, read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
read-only, override
typeClass ClassRef?
The corresponding Class if this Type has a resolved typeClass. [...]
@optional, read / write
valueAsString String?
The value of this instance as a string. [...]
@optional, read / write
valueAsStringIsTruncated bool?
The valueAsString for String references may be truncated. If so, this property is added with the value 'true'. [...]
@optional, read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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?