rootIsolateToken property

RootIsolateToken? rootIsolateToken

A token that represents the root isolate, used for coordinating with background isolates.

This property is primarily intended for use with BackgroundIsolateBinaryMessenger.ensureInitialized, which takes a RootIsolateToken as its argument. The value null is returned when executed from background isolates.

Implementation

static ui.RootIsolateToken? get rootIsolateToken => ui.RootIsolateToken.instance;