GetDllEntry method Null safety

int GetDllEntry(
  1. int memid,
  2. int invKind,
  3. Pointer<Pointer<Utf16>> pBstrDllName,
  4. Pointer<Pointer<Utf16>> pBstrName,
  5. Pointer<Uint16> pwOrdinal
)

Implementation

int GetDllEntry(int memid, int invKind, Pointer<Pointer<Utf16>> pBstrDllName,
        Pointer<Pointer<Utf16>> pBstrName, Pointer<Uint16> pwOrdinal) =>
    ptr.ref.lpVtbl.value
            .elementAt(13)
            .cast<Pointer<NativeFunction<_GetDllEntry_Native>>>()
            .value
            .asFunction<_GetDllEntry_Dart>()(
        ptr.ref.lpVtbl, memid, invKind, pBstrDllName, pBstrName, pwOrdinal);