1 | | | import 'worker_service.dart'; |
2 | | |
|
3 | | | import '_bootstrapper_stub.dart' |
4 | | | if (dart.library.js) 'browser/_bootstrapper.dart' |
5 | | | if (dart.library.html) 'browser/_bootstrapper.dart' |
6 | | | if (dart.library.io) 'native/_bootstrapper.dart'; |
7 | | |
|
8 | | | /// Instantiates a [WorkerService] via the [initializer] and installs the service in a platform worker. |
9 | | | /// The [command] argument is ignored on Web platforms. On native platforms, the [command] argument must be |
10 | | | /// set to the [Isolate]'s startup parameter. |
11 | | 1 | void run(WorkerInitializer initializer, [Map? command]) => |
12 | | 1 | bootstrap(initializer, command); |