AddPushButton method Null safety

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

Implementation

int AddPushButton(int dwIDCtl, Pointer<Utf16> pszLabel) =>
    ptr.ref.lpVtbl.value
        .elementAt(5)
        .cast<Pointer<NativeFunction<_AddPushButton_Native>>>()
        .value
        .asFunction<_AddPushButton_Dart>()(ptr.ref.lpVtbl, dwIDCtl, pszLabel);