GetNames method Null safety

int GetNames(
  1. int memid,
  2. Pointer<Pointer<Utf16>> rgBstrNames,
  3. int cMaxNames,
  4. Pointer<Uint32> pcNames
)

Implementation

int GetNames(int memid, Pointer<Pointer<Utf16>> rgBstrNames, int cMaxNames,
        Pointer<Uint32> pcNames) =>
    ptr.ref.lpVtbl.value
            .elementAt(7)
            .cast<Pointer<NativeFunction<_GetNames_Native>>>()
            .value
            .asFunction<_GetNames_Dart>()(
        ptr.ref.lpVtbl, memid, rgBstrNames, cMaxNames, pcNames);