HandledIsolate<T> class

Instance of FlutterIsolate handled by HandledIsolate.

Constructors

HandledIsolate({required String name, required void function(Map<String, dynamic>), void onInitialized()?, bool paused = false, bool? errorsAreFatal, SendPort? onExit, SendPort? onError, String? debugName})
Create a new instance of HandledIsolate.

Properties

hashCode int
The hash code for this object.
no setterinherited
isolate → FlutterIsolate
Instance of Dart FlutterIsolate handled by this instance.
no setter
messenger HandledIsolateMessenger
Instance of HandledIsolateMessenger communication channel.
no setter
name String
Unique name used by IsolateHandler to identify isolate.
no setter
pauseCapability Capability?
Capability granting the ability to pause the isolate.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose({int priority = Isolate.beforeNextEvent}) → void
Disposes of the Isolate instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause([Capability? resumeCapability]) → void
Requests the isolate to pause.
resume([Capability? resumeCapability]) → void
Resumes a paused isolate.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

initialize(Map<String, dynamic> context) HandledIsolateMessenger
Establishes communication channels between this instance and context.