spawnIsolate static method
Implementation
static Future<Isolate> spawnIsolate(FutureOr<void> Function(SendPort sendPort) entryPoint) async {
final receivePort = ReceivePort();
final isolate = await Isolate.spawn(entryPoint, receivePort.sendPort);
return isolate;
}