IsolateHelper class
Helper for offloading work to a background isolate on native platforms.
Constructors
- IsolateHelper()
-
Creates an IsolateHelper for native platforms.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeJsonEncode(
Object? object) → Future< String> - Runs a one-off JSON encoding task in a background isolate.
-
dispose(
) → void - Disposes of any platform-specific resources. (No-op for native)
-
initialize(
) → Future< void> - Initializes any platform-specific resources. (No-op for native)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
spawn<
T> (void entryPoint(T message), T message) → Future< Isolate> - Spawns a long-lived isolate for complex, two-way communication.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited