Id property Null safety

int Id

Implementation

int get Id {
  final retValuePtr = calloc<Uint32>();

  final hr = Pointer<NativeFunction<_get_Id_Native>>.fromAddress(
          ptr.ref.vtable.elementAt(6).value)
      .asFunction<_get_Id_Dart>()(ptr.ref.lpVtbl, retValuePtr);
  if (FAILED(hr)) throw WindowsException(hr);

  final retValue = retValuePtr.value;
  free(retValuePtr);
  return retValue;
}