initialize method

Future<void> initialize()

Implementation

Future<void> initialize() async {
  _isolate = await Isolate.spawn(_isolation, _receivePort.sendPort);
  _sendPort = await _receivePort.first as SendPort;
}