Isolate class

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

Inheritance
Implemented types

Constructors

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

Properties

breakpoints List<Breakpoint>?
A list of all breakpoints for this isolate.
getter/setter pair
error Error?
The error that is causing this isolate to exit, if applicable.
getter/setter pair
exceptionPauseMode String?
The current pause on exception mode for this isolate.
getter/setter pair
extensionRPCs List<String>?
The list of service extension RPCs that are registered for this isolate, if any.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String?
The id which is passed to the getIsolate RPC to reload this isolate.
getter/setter pairoverride
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.
getter/setter pair
isolateGroupId String?
The id of the isolate group that this isolate belongs to.
getter/setter pairoverride
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.
getter/setter pairoverride
json Map<String, dynamic>?
getter/setter pairinherited
libraries List<LibraryRef>?
A list of all libraries for this isolate.
getter/setter pair
livePorts int?
The number of live ports for this isolate.
getter/setter pair
name String?
A name identifying this isolate. Not guaranteed to be unique.
getter/setter pairoverride
number String?
A numeric id for this isolate, represented as a string. Unique.
getter/setter pairoverride
pauseEvent Event?
The last pause event delivered to the isolate. If the isolate is running, this will be a resume event.
getter/setter pair
pauseOnExit bool?
Will this isolate pause when exiting?
getter/setter pair
rootLib LibraryRef?
The root library for this isolate.
getter/setter pair
runnable bool?
Is the isolate in a runnable state?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime int?
The time that the VM started in milliseconds since the epoch.
getter/setter pair
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) Isolate?
override