start method

Future<void> start(
  1. void entryPoint(
    1. dynamic mainSendPortArg
    )
)

Spawns the worker isolate with entryPoint.

Implementation

Future<void> start(void Function(dynamic) entryPoint) async {
  _isolate = await Isolate.spawn(entryPoint, _receivePort.sendPort);
}