callbackDispatcher function
void
callbackDispatcher()
Entry point of the background isolate started by the native side.
Implementation
@pragma('vm:entry-point')
void callbackDispatcher() {
WidgetsFlutterBinding.ensureInitialized();
const MethodChannel backgroundChannel = MethodChannel(
Keys.BACKGROUND_CHANNEL_ID,
);
backgroundChannel.setMethodCallHandler(
serializeCalls(handleBackgroundMethodCall),
);
backgroundChannel.invokeMethod(Keys.METHOD_SERVICE_INITIALIZED);
}