sendOffMainIsolate top-level property
- @visibleForTesting
getter/setter pair
How a switching send reaches a spawned isolate: Isolate.run, replaced
by tests.
Implementation
@visibleForTesting
Future<({int code, String? message, int micros})> Function(
({int code, String? message, int micros}) Function() work,
)
sendOffMainIsolate = Isolate.run;