startWorkerForTest static method

  1. @visibleForTesting
Future<void> startWorkerForTest(
  1. void entryPoint(
    1. SendPort mainSendPort
    )
)

(FOR TESTING ONLY) Runs entryPoint as the worker instead of the ONNX worker, without an init command. It receives the same messages (embed, dispose) and must answer them the same way.

Implementation

@visibleForTesting
static Future<void> startWorkerForTest(
  void Function(SendPort mainSendPort) entryPoint,
) => _startWorker(entryPoint);