removeAt method

void removeAt(
  1. int index
)

Removes the item at the specified index in the vector.

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);
}