RemoveAt method

void RemoveAt(
  1. int index
)

Implementation

void RemoveAt(int index) {
  final hr = ptr.ref.vtable
      .elementAt(12)
      .cast<
          Pointer<
              NativeFunction<
                  HRESULT Function(
        Pointer,
        Uint32,
      )>>>()
      .value
      .asFunction<int Function(Pointer, int)>()(
    ptr.ref.lpVtbl,
    index,
  );

  if (FAILED(hr)) throw WindowsException(hr);
}