call method

Implementation

NSCollectionViewItem call(
  ffi.Pointer<ffi.Void> arg0,
  NSCollectionView arg1,
  NSIndexPath arg2,
) => NSCollectionViewItem.castFromPointer(
  ref.pointer.ref.invoke
      .cast<
        ffi.NativeFunction<
          ffi.Pointer<objc.ObjCObject> Function(
            ffi.Pointer<objc.ObjCBlockImpl> block,
            ffi.Pointer<ffi.Void> arg0,
            ffi.Pointer<objc.ObjCObject> arg1,
            ffi.Pointer<objc.ObjCObject> arg2,
          )
        >
      >()
      .asFunction<
        ffi.Pointer<objc.ObjCObject> Function(
          ffi.Pointer<objc.ObjCBlockImpl>,
          ffi.Pointer<ffi.Void>,
          ffi.Pointer<objc.ObjCObject>,
          ffi.Pointer<objc.ObjCObject>,
        )
      >()(ref.pointer, arg0, arg1.ref.pointer, arg2.ref.pointer),
  retain: true,
  release: true,
);