run static method
Runs callbackDispatcher in the current JS worker/service-worker global.
Throws on non-web platforms.
Implementation
static void run(Function callbackDispatcher) {
throw UnsupportedError(
'WorkmanagerWebWorker can only run inside a compiled web worker bundle.',
);
}