callback_dispatcher library
Functions
-
callbackDispatcher(
) → void - Entry point of the background isolate started by the native side.
-
handleBackgroundMethodCall(
MethodCall call) → Future< void> - Dispatches a call from the native side to the user callback whose handle it carries.
-
serializeCalls(
Future< void> handler(MethodCall call)) → Future<void> Function(MethodCall call) -
Runs
handlerfor one call at a time, in arrival order, so an asyncinitCallbackfinishes before the first location reaches the callback.