Instance class

An Instance represents an instance of the Dart language class Obj.

Inheritance
Implemented types
Implementers

Constructors

Instance({String? kind, int? identityHashCode, ClassRef? classRef, required String id, String? valueAsString, bool? valueAsStringIsTruncated, int? length, int? offset, int? count, String? name, ClassRef? typeClass, ClassRef? parameterizedClass, InstanceRef? returnType, List<Parameter>? parameters, List<InstanceRef>? typeParameters, List<BoundField>? fields, List? elements, List<MapAssociation>? associations, String? bytes, ObjRef? mirrorReferent, InstanceRef? pattern, FuncRef? closureFunction, ContextRef? closureContext, InstanceRef? closureReceiver, bool? isCaseSensitive, bool? isMultiLine, ObjRef? propertyKey, ObjRef? propertyValue, ObjRef? target, TypeArgumentsRef? typeArguments, int? parameterIndex, InstanceRef? targetType, InstanceRef? bound, int? portId, InstanceRef? allocationLocation, String? debugName, String? label, InstanceRef? callback, InstanceRef? callbackAddress, InstanceRef? allEntries, InstanceRef? value, InstanceRef? token, InstanceRef? detach})

Properties

allEntries InstanceRef?
The entries for a (Native)Finalizer instance.
getter/setter pair
allocationLocation InstanceRef?
The stack trace associated with the allocation of a ReceivePort.
getter/setter pairoverride
associations List<MapAssociation>?
The elements of a Map instance.
getter/setter pair
bound InstanceRef?
The bound of a TypeParameter or BoundedType.
getter/setter pair
bytes String?
The bytes of a TypedData instance.
getter/setter pair
callback InstanceRef?
The callback for a Finalizer instance.
getter/setter pair
callbackAddress InstanceRef?
The callback for a NativeFinalizer instance.
getter/setter pair
classRef ClassRef?
Instance references always include their class.
getter/setter pairoverride
closureContext ContextRef?
The context associated with a Closure instance.
getter/setter pairoverride
closureFunction FuncRef?
The function associated with a Closure instance.
getter/setter pairoverride
closureReceiver InstanceRef?
The receiver captured by tear-off Closure instance.
getter/setter pairoverride
count int?
The number of elements or associations or codeunits returned. This is only provided when it is less than length.
getter/setter pair
debugName String?
A name associated with a ReceivePort used for debugging purposes.
getter/setter pairoverride
detach InstanceRef?
The detach key for a FinalizerEntry instance.
getter/setter pair
elements List?
The elements of a List or Set instance.
getter/setter pair
fields List<BoundField>?
The (non-static) fields of this Instance.
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 reload 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 pairoverride
isCaseSensitive bool?
Whether this regular expression is case sensitive.
getter/setter pair
isMultiLine bool?
Whether this regular expression matches multiple lines.
getter/setter pair
json Map<String, dynamic>?
getter/setter pairinherited
kind String?
What kind of instance is this?
getter/setter pairoverride
label String?
The label associated with a UserTag.
getter/setter pairoverride
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 pairoverride
mirrorReferent ObjRef?
The referent of a MirrorReference instance.
getter/setter pair
name String?
The name of a Type instance.
getter/setter pairoverride
offset int?
The index of the first element or association or codeunit returned. This is only provided when it is non-zero.
getter/setter pair
parameterIndex int?
The index of a TypeParameter instance.
getter/setter pair
parameterizedClass ClassRef?
The parameterized class of a type parameter:
getter/setter pairoverride
parameters List<Parameter>?
The list of parameter types for a function.
getter/setter pairoverride
pattern InstanceRef?
The pattern of a RegExp instance.
getter/setter pairoverride
portId int?
The port ID for a ReceivePort.
getter/setter pairoverride
propertyKey ObjRef?
The key for a WeakProperty instance.
getter/setter pair
propertyValue ObjRef?
The key for a WeakProperty instance.
getter/setter pair
returnType InstanceRef?
The return type of a function.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The size of this object in the heap.
getter/setter pairinherited
target ObjRef?
The target for a WeakReference instance.
getter/setter pair
targetType InstanceRef?
The type bounded by a BoundedType instance.
getter/setter pair
token InstanceRef?
The token passed to the finalizer callback for a FinalizerEntry instance.
getter/setter pair
type String
no setteroverride
typeArguments TypeArgumentsRef?
The type arguments for this type.
getter/setter pair
typeClass ClassRef?
The corresponding Class if this Type is canonical.
getter/setter pairoverride
typeParameters List<InstanceRef>?
The type parameters for a function.
getter/setter pairoverride
value InstanceRef?
The value being watched for finalization for a FinalizerEntry instance.
getter/setter pair
valueAsString String?
The value of this instance as a string.
getter/setter pairoverride
valueAsStringIsTruncated bool?
The valueAsString for String references may be truncated. If so, this property is added with the value 'true'.
getter/setter pairoverride

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) Instance?
override