Invoke method Null safety

int Invoke(
  1. int dispIdMember,
  2. Pointer<GUID> riid,
  3. int lcid,
  4. int wFlags,
  5. Pointer<DISPPARAMS> pDispParams,
  6. Pointer<VARIANT> pVarResult,
  7. Pointer<EXCEPINFO> pExcepInfo,
  8. Pointer<Uint32> puArgErr
)

Implementation

int Invoke(
        int dispIdMember,
        Pointer<GUID> riid,
        int lcid,
        int wFlags,
        Pointer<DISPPARAMS> pDispParams,
        Pointer<VARIANT> pVarResult,
        Pointer<EXCEPINFO> pExcepInfo,
        Pointer<Uint32> puArgErr) =>
    ptr.ref.lpVtbl.value
            .elementAt(6)
            .cast<Pointer<NativeFunction<_Invoke_Native>>>()
            .value
            .asFunction<_Invoke_Dart>()(ptr.ref.lpVtbl, dispIdMember, riid,
        lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);