call method

Implementation

DartNSInteger call(
  ffi.Pointer<ffi.Void> arg0,
  NSCollectionView arg1,
  DartNSInteger arg2,
) => ref.pointer.ref.invoke
    .cast<
      ffi.NativeFunction<
        NSInteger Function(
          ffi.Pointer<objc.ObjCBlockImpl> block,
          ffi.Pointer<ffi.Void> arg0,
          ffi.Pointer<objc.ObjCObject> arg1,
          NSInteger arg2,
        )
      >
    >()
    .asFunction<
      int Function(
        ffi.Pointer<objc.ObjCBlockImpl>,
        ffi.Pointer<ffi.Void>,
        ffi.Pointer<objc.ObjCObject>,
        int,
      )
    >()(ref.pointer, arg0, arg1.ref.pointer, arg2);