spawn<T> method

Future<Isolate> spawn<T>(
  1. void entryPoint(
    1. T message
    ),
  2. T message
)

Spawns a long-lived isolate for complex, two-way communication.

Implementation

Future<Isolate> spawn<T>(void Function(T message) entryPoint, T message) => Isolate.spawn<T>(entryPoint, message);