registerBackgroundIsolate method

void registerBackgroundIsolate(
  1. RootIsolateToken token
)

Registers the current isolate with the isolate identified with by the token. This is required if platform channels are to be used on a background isolate.

Implementation

void registerBackgroundIsolate(RootIsolateToken token) {
  DartPluginRegistrant.ensureInitialized();
  __registerBackgroundIsolate(token._token);
}