DartWorkerInternal class final

Internal DartWorker with callback handle.

This class is used internally by NativeWorkManager to pass the callback handle to the native side. Users should use DartWorker instead.

DO NOT use this class directly - it's for internal use only.

Inheritance
Annotations

Constructors

DartWorkerInternal({required String callbackId, required int callbackHandle, Map<String, dynamic>? input, bool autoDispose = false, int? timeoutMs, String? onStoppedId, int? onStoppedHandle, int? cancelGraceMs})
const

Properties

autoDispose → bool
Whether to dispose Flutter Engine immediately after task completes.
final
callbackHandle → int
Serializable callback handle for cross-isolate communication.
final
callbackId → String
ID of the registered callback.
final
cancelGraceMs → int?
Grace budget in milliseconds. null means notify-only — never tear the engine down. See DartWorker.cancelGrace.
final
hashCode → int
The hash code for this object.
no setterinherited
input → Map<String, dynamic>?
Optional input data (will be JSON encoded).
final
onStoppedHandle → int?
Serializable handle of the stop handler, for the headless-isolate path (issue #75). The background isolate never runs initialize(), so it has no registry to look onStoppedId up in and must resolve by handle.
final
onStoppedId → String?
ID of the registered stop handler, for the main-isolate path (issue #75).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeoutMs → int?
Maximum time in milliseconds the callback is allowed to run. null means use the platform default (5 min).
final
workerClassName → String
Get the worker class name for native side.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Convert to map for platform channel.
override
toString() → String
A string representation of this object.
inherited

Operators

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