AddressOfMember method Null safety

int AddressOfMember(
  1. int memid,
  2. int invKind,
  3. Pointer<Pointer<NativeType>> ppv
)

Implementation

int AddressOfMember(int memid, int invKind, Pointer<Pointer> ppv) =>
    ptr.ref.vtable
        .elementAt(15)
        .cast<
            Pointer<
                NativeFunction<
                    Int32 Function(Pointer, Int32 memid, Int32 invKind,
                        Pointer<Pointer> ppv)>>>()
        .value
        .asFunction<
            int Function(Pointer, int memid, int invKind,
                Pointer<Pointer> ppv)>()(ptr.ref.lpVtbl, memid, invKind, ppv);