spawn<T> method
Spawns a long-lived isolate for complex, two-way communication.
This operation is not supported on web and will throw an UnsupportedError.
Implementation
Future<void> spawn<T>(void Function(T message) entryPoint, T message) {
throw UnsupportedError('Isolates cannot be spawned on the web platform.');
}