Isolate class Null safety

An Isolate object provides information about one isolate in the VM.

Inheritance
Implemented types

Constructors

Isolate({required String? id, required String? number, required String? name, required bool? isSystemIsolate, required List<IsolateFlag>? isolateFlags, required int? startTime, required bool? runnable, required int? livePorts, required bool? pauseOnExit, required Event? pauseEvent, required List<LibraryRef>? libraries, required List<Breakpoint>? breakpoints, required String? exceptionPauseMode, LibraryRef? rootLib, Error? error, List<String>? extensionRPCs})

Properties

breakpoints List<Breakpoint>?
A list of all breakpoints for this isolate.
read / write
error Error?
The error that is causing this isolate to exit, if applicable.
@optional, read / write
exceptionPauseMode String?
The current pause on exception mode for this isolate.
read / write
extensionRPCs List<String>?
The list of service extension RPCs that are registered for this isolate, if any.
@optional, read / write
hashCode int
The hash code for this object. [...]
read-only, override
id String?
The id which is passed to the getIsolate RPC to reload this isolate.
read / write, override
isolateFlags List<IsolateFlag>?
The list of isolate flags provided to this isolate. See Dart_IsolateFlags in dart_api.h for the list of accepted isolate flags.
read / write
isSystemIsolate bool?
Specifies whether the isolate was spawned by the VM or embedder for internal use. If false, this isolate is likely running user code.
read / write, override
json Map<String, dynamic>?
read / write, inherited
libraries List<LibraryRef>?
A list of all libraries for this isolate. [...]
read / write
livePorts int?
The number of live ports for this isolate.
read / write
name String?
A name identifying this isolate. Not guaranteed to be unique.
read / write, override
number String?
A numeric id for this isolate, represented as a string. Unique.
read / write, override
pauseEvent Event?
The last pause event delivered to the isolate. If the isolate is running, this will be a resume event.
read / write
pauseOnExit bool?
Will this isolate pause when exiting?
read / write
rootLib LibraryRef?
The root library for this isolate. [...]
@optional, read / write
runnable bool?
Is the isolate in a runnable state?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startTime int?
The time that the VM started in milliseconds since the epoch. [...]
read / write
type String
read-only, 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 ==(Object other) bool
The equality operator. [...]
override

Static Methods

parse(Map<String, dynamic>? json) Isolate?
override