call method

NSRect call(
  1. Pointer<Void> arg0,
  2. NSPageController arg1,
  3. ObjCObjectBase? arg2
)

Implementation

NSRect call(
  ffi.Pointer<ffi.Void> arg0,
  NSPageController arg1,
  objc.ObjCObjectBase? arg2,
) =>
    ref.pointer.ref.invoke
        .cast<
          ffi.NativeFunction<
            NSRect Function(
              ffi.Pointer<objc.ObjCBlockImpl> block,
              ffi.Pointer<ffi.Void> arg0,
              ffi.Pointer<objc.ObjCObject> arg1,
              ffi.Pointer<objc.ObjCObject> arg2,
            )
          >
        >()
        .asFunction<
          NSRect 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 ?? ffi.nullptr,
    );