IsolateHelper class

Helper for offloading work to a background isolate on web platforms.

On web, isolates are not supported in the same way as on native platforms. This implementation provides a web-compatible version of IsolateHelper where computeJsonEncode runs directly on the main thread.

Constructors

IsolateHelper()
Creates an IsolateHelper for web 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 directly on the main thread for web.
dispose() → void
Disposes of any platform-specific resources. (No-op for web)
initialize() → Future<void>
Initializes any platform-specific resources. (No-op for web)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
spawn<T>(void entryPoint(T message), T message) → Future<void>
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