returnResult static method

void returnResult(
  1. Pointer<CallbackResult> result,
  2. JObjectPtr object
)

Returns the result of a callback.

Implementation

static void returnResult(
    Pointer<CallbackResult> result, JObjectPtr object) async {
  // The result is `nullptr` when the callback is a listener.
  if (result != nullptr) {
    Jni._bindings.resultFor(result, object);
  }
}