Instance class

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

Inheritance
Implemented types
Implementers

Constructors

Instance({@required String kind, @required ClassRef classRef, @required String id, String valueAsString, bool valueAsStringIsTruncated, int length, int offset, int count, String name, ClassRef typeClass, ClassRef parameterizedClass, 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. [...]
@optional, read / write, override
associations List<MapAssociation>
The elements of a Map instance. [...]
@optional, read / write
bound InstanceRef
The bound of a TypeParameter or BoundedType. [...]
@optional, read / write
bytes String
The bytes of a TypedData instance. [...]
@optional, read / write
classRef ClassRef
Instance references always include their class.
read / write, override
closureContext ContextRef
The context associated with a Closure instance. [...]
@optional, read / write, override
closureFunction FuncRef
The function associated with a Closure instance. [...]
@optional, read / write, override
count int
The number of elements or associations or codeunits returned. This is only provided when it is less than length. [...]
@optional, read / write
debugName String
A name associated with a ReceivePort used for debugging purposes. [...]
@optional, read / write, override
elements List
The elements of a List instance. [...]
@optional, read / write
fields List<BoundField>
The fields of this Instance.
@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 reload this Object. [...]
read / write, inherited
isCaseSensitive bool
Whether this regular expression is case sensitive. [...]
@optional, read / write
isMultiLine bool
Whether this regular expression matches multiple lines. [...]
@optional, read / write
json Map<String, dynamic>
read / write, inherited
kind String
What kind of instance is this?
read / write, override
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, override
mirrorReferent InstanceRef
The referent of a MirrorReference instance. [...]
@optional, read / write
name String
The name of a Type instance. [...]
@optional, read / write, override
offset int
The index of the first element or association or codeunit returned. This is only provided when it is non-zero. [...]
@optional, read / write
parameterIndex int
The index of a TypeParameter instance. [...]
@optional, read / write
parameterizedClass ClassRef
The parameterized class of a type parameter: [...]
@optional, read / write, override
pattern InstanceRef
The pattern of a RegExp instance. [...]
@optional, read / write, override
portId int
The port ID for a ReceivePort. [...]
@optional, read / write, override
propertyKey InstanceRef
The key for a WeakProperty instance. [...]
@optional, read / write
propertyValue InstanceRef
The key for a WeakProperty instance. [...]
@optional, read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
The size of this object in the heap. [...]
@optional, read / write, inherited
targetType InstanceRef
The type bounded by a BoundedType instance - or - the referent of a TypeRef instance. [...]
@optional, read / write
type String
Every response returned by the VM Service has the type property. This allows the client distinguish between different kinds of responses.
read / write, inherited
typeArguments TypeArgumentsRef
The type arguments for this type. [...]
@optional, read / write
typeClass ClassRef
The corresponding Class if this Type is canonical. [...]
@optional, read / write, override
valueAsString String
The value of this instance as a string. [...]
@optional, read / write, override
valueAsStringIsTruncated bool
The valueAsString for String references may be truncated. If so, this property is added with the value 'true'. [...]
@optional, read / write, override

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 ==(dynamic other) bool
The equality operator. [...]
override

Static Methods

parse(Map<String, dynamic> json) Instance
override