Code class

A Code object represents compiled code in the Dart VM.

Inheritance
Implemented types

Constructors

Code({String? name, String? kind, required String id, FuncRef? function})

Properties

classRef ClassRef?
If an object is allocated in the Dart heap, it will have a corresponding class object.
getter/setter pairinherited
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
function FuncRef?
This code object's corresponding function.
getter/setter pairoverride
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
json Map<String, dynamic>?
getter/setter pairinherited
kind String?
What kind of code object is this?
getter/setter pairoverride
name String?
A name for this code object.
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
type String
no setteroverride

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