AddCheckButton method Null safety

int AddCheckButton(
  1. int dwIDCtl,
  2. Pointer<Utf16> pszLabel,
  3. int bChecked
)

Implementation

int AddCheckButton(int dwIDCtl, Pointer<Utf16> pszLabel, int bChecked) =>
    ptr.ref.lpVtbl.value
            .elementAt(8)
            .cast<Pointer<NativeFunction<_AddCheckButton_Native>>>()
            .value
            .asFunction<_AddCheckButton_Dart>()(
        ptr.ref.lpVtbl, dwIDCtl, pszLabel, bChecked);