GetPropertyStoreWithCreateObject method Null safety

int GetPropertyStoreWithCreateObject(
  1. int flags,
  2. Pointer<NativeType> punkCreateObject,
  3. Pointer<GUID> riid,
  4. Pointer<Pointer<NativeType>> ppv
)

Implementation

int
    GetPropertyStoreWithCreateObject(int flags, Pointer punkCreateObject,
            Pointer<GUID> riid, Pointer<Pointer> ppv) =>
        ptr.ref.lpVtbl.value
                .elementAt(9)
                .cast<
                    Pointer<
                        NativeFunction<
                            _GetPropertyStoreWithCreateObject_Native>>>()
                .value
                .asFunction<_GetPropertyStoreWithCreateObject_Dart>()(
            ptr.ref.lpVtbl, flags, punkCreateObject, riid, ppv);