call method

bool call(
  1. Pointer<Void> arg0,
  2. NSApplication arg1
)

Implementation

bool call(ffi.Pointer<ffi.Void> arg0, NSApplication arg1) => ref
    .pointer
    .ref
    .invoke
    .cast<
      ffi.NativeFunction<
        ffi.Bool Function(
          ffi.Pointer<objc.ObjCBlockImpl> block,
          ffi.Pointer<ffi.Void> arg0,
          ffi.Pointer<objc.ObjCObject> arg1,
        )
      >
    >()
    .asFunction<
      bool Function(
        ffi.Pointer<objc.ObjCBlockImpl>,
        ffi.Pointer<ffi.Void>,
        ffi.Pointer<objc.ObjCObject>,
      )
    >()(ref.pointer, arg0, arg1.ref.pointer);