sendOffMainIsolate top-level property

  1. @visibleForTesting
Future<({int code, String? message, int micros})> Function(({int code, String? message, int micros}) work()) sendOffMainIsolate
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;