init static method

Future<IsoWorker> init(
  1. IsoFunction func
)

Initialization. Provide a top-level or static method with Stream<WorkerData> as an argument.

Implementation

static Future<IsoWorker> init(IsoFunction func) async {
  final instance = IsoWorker._();
  await instance._init(func);
  return instance;
}