call method

void call(
  1. ObjCObjectBase? arg0,
  2. NSError? arg1
)

Implementation

void call(objc.ObjCObjectBase? arg0, objc.NSError? arg1) =>
    ref.pointer.ref.invoke
        .cast<
          ffi.NativeFunction<
            ffi.Void Function(
              ffi.Pointer<objc.ObjCBlockImpl> block,
              ffi.Pointer<objc.ObjCObject> arg0,
              ffi.Pointer<objc.ObjCObject> arg1,
            )
          >
        >()
        .asFunction<
          void Function(
            ffi.Pointer<objc.ObjCBlockImpl>,
            ffi.Pointer<objc.ObjCObject>,
            ffi.Pointer<objc.ObjCObject>,
          )
        >()(
      ref.pointer,
      arg0?.ref.pointer ?? ffi.nullptr,
      arg1?.ref.pointer ?? ffi.nullptr,
    );