process method Null safety

Future<void> process(
  1. Context context
)

Implementation

Future<void> process(Context context) async {
  ReceivePort receivePort = ReceivePort();

  _sendPort.send({
    "event": _ProcessingBlockEvents.PROCESS,
    "sendPort": receivePort.sendPort,
    "context": context._impl.address,
  });

  await receivePort.first;
}