onInit property
Worker init function. May be async: waitInit waits for it to finish.
Must be top-level/static - closures cannot be sent to another isolate.
Implementation
final FutureOr<void> Function(EventBus isolateBu, Object? initialData) onInit;