InstanceRef class Null safety
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})
Properties
- allocationLocation ↔ InstanceRef?
-
The stack trace associated with the allocation of a ReceivePort.
optional">@optionalread / write
- classRef ↔ ClassRef?
-
Instance references always include their class.
read / write
- closureContext ↔ ContextRef?
-
The context associated with a Closure instance.
optional">@optionalread / write
- closureFunction ↔ FuncRef?
-
The function associated with a Closure instance.
optional">@optionalread / write
- debugName ↔ String?
-
A name associated with a ReceivePort used for debugging purposes.
optional">@optionalread / 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.
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- id ↔ String?
-
A unique identifier for an Object. Passed to the getObject RPC to load
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 / write
-
json
↔ Map<
String, dynamic> ? -
read / writeinherited
- 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">@optionalread / write
- name ↔ String?
-
The name of a Type instance.
optional">@optionalread / write
- parameterizedClass ↔ ClassRef?
-
The parameterized class of a type parameter.
optional">@optionalread / write
-
parameters
↔ List<
Parameter> ? -
The list of parameter types for a function.
optional">@optionalread / write
- pattern ↔ InstanceRef?
-
The pattern of a RegExp instance.
optional">@optionalread / write
- portId ↔ int?
-
The port ID for a ReceivePort.
optional">@optionalread / write
- returnType ↔ InstanceRef?
-
The return type of a function.
optional">@optionalread / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- type → String
-
read-onlyoverride
- typeClass ↔ ClassRef?
-
The corresponding Class if this Type has a resolved typeClass.
optional">@optionalread / write
-
typeParameters
↔ List<
InstanceRef> ? -
The type parameters for a function.
optional">@optionalread / write
- valueAsString ↔ String?
-
The value of this instance as a string.
optional">@optionalread / write
- valueAsStringIsTruncated ↔ bool?
-
The valueAsString for String references may be truncated. If so, this
property is added with the value 'true'.
optional">@optionalread / write
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) → InstanceRef? -
override