requestExecuteCallback function

void requestExecuteCallback(
  1. dynamic message
)

Implementation

void requestExecuteCallback(message) {
  try {
    final List<dynamic> data = message;
    final bool isSync = data[0] == 1;
    if (isSync) {
      _working_completer = Completer();
    }

    final int workAddress = data[1];
    final work = Pointer<NativeWork>.fromAddress(workAddress);
    _executeNativeCallback(work);
    _working_completer?.complete();
    _working_completer = null;
  } catch (e, stack) {
    print('requestExecuteCallback error: $e\n$stack');
  }
}