Register method Null safety

int Register(
  1. int grfFlags,
  2. Pointer<NativeType> punkObject,
  3. Pointer<NativeType> pmkObjectName,
  4. Pointer<Uint32> pdwRegister
)

Implementation

int Register(int grfFlags, Pointer punkObject, Pointer pmkObjectName,
        Pointer<Uint32> pdwRegister) =>
    ptr.ref.lpVtbl.value
            .elementAt(3)
            .cast<Pointer<NativeFunction<_Register_Native>>>()
            .value
            .asFunction<_Register_Dart>()(
        ptr.ref.lpVtbl, grfFlags, punkObject, pmkObjectName, pdwRegister);