AddMenu method Null safety

int AddMenu(
  1. int dwIDCtl,
  2. Pointer<Utf16> pszLabel
)

Implementation

int AddMenu(int dwIDCtl, Pointer<Utf16> pszLabel) => ptr.ref.lpVtbl.value
    .elementAt(4)
    .cast<Pointer<NativeFunction<_AddMenu_Native>>>()
    .value
    .asFunction<_AddMenu_Dart>()(ptr.ref.lpVtbl, dwIDCtl, pszLabel);