Instance class Null safety

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, InstanceRef? mirrorReferent, InstanceRef? pattern, FuncRef? closureFunction, ContextRef? closureContext, bool? isCaseSensitive, bool? isMultiLine, InstanceRef? propertyKey, InstanceRef? propertyValue, TypeArgumentsRef? typeArguments, int? parameterIndex, InstanceRef? targetType, InstanceRef? bound, int? portId, InstanceRef? allocationLocation, String? debugName})

Properties

allocationLocation InstanceRef?
The stack trace associated with the allocation of a ReceivePort.
read / writeoverride
associations List<MapAssociation>?
The elements of a Map instance.
read / write
bound InstanceRef?
The bound of a TypeParameter or BoundedType.
read / write
bytes String?
The bytes of a TypedData instance.
read / write
classRef ClassRef?
Instance references always include their class.
read / writeoverride
closureContext ContextRef?
The context associated with a Closure instance.
read / writeoverride
closureFunction FuncRef?
The function associated with a Closure instance.
read / writeoverride
count int?
The number of elements or associations or codeunits returned. This is only provided when it is less than length.
read / write
debugName String?
A name associated with a ReceivePort used for debugging purposes.
read / writeoverride
elements List?
The elements of a List instance.
read / write
fields List<BoundField>?
The fields of this Instance.
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.
read-onlyoverride
id String?
A unique identifier for an Object. Passed to the getObject RPC to reload 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 / writeoverride
isCaseSensitive bool?
Whether this regular expression is case sensitive.
read / write
isMultiLine bool?
Whether this regular expression matches multiple lines.
read / write
json Map<String, dynamic>?
read / writeinherited
kind String?
What kind of instance is this?
read / writeoverride
length int?
The length of a List or the number of associations in a Map or the number of codeunits in a String.
read / writeoverride
mirrorReferent InstanceRef?
The referent of a MirrorReference instance.
read / write
name String?
The name of a Type instance.
read / writeoverride
offset int?
The index of the first element or association or codeunit returned. This is only provided when it is non-zero.
read / write
parameterIndex int?
The index of a TypeParameter instance.
read / write
parameterizedClass ClassRef?
The parameterized class of a type parameter:
read / writeoverride
parameters List<Parameter>?
The list of parameter types for a function.
read / writeoverride
pattern InstanceRef?
The pattern of a RegExp instance.
read / writeoverride
portId int?
The port ID for a ReceivePort.
read / writeoverride
propertyKey InstanceRef?
The key for a WeakProperty instance.
read / write
propertyValue InstanceRef?
The key for a WeakProperty instance.
read / write
returnType InstanceRef?
The return type of a function.
read / writeoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size int?
The size of this object in the heap.
read / writeinherited
targetType InstanceRef?
The type bounded by a BoundedType instance - or - the referent of a TypeRef instance.
read / write
type String
read-onlyoverride
typeArguments TypeArgumentsRef?
The type arguments for this type.
read / write
typeClass ClassRef?
The corresponding Class if this Type is canonical.
read / writeoverride
typeParameters List<InstanceRef>?
The type parameters for a function.
read / writeoverride
valueAsString String?
The value of this instance as a string.
read / writeoverride
valueAsStringIsTruncated bool?
The valueAsString for String references may be truncated. If so, this property is added with the value 'true'.
read / writeoverride

Methods

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