setAt method

void setAt(
  1. int index,
  2. T value
)

Sets the value at the specified index in the vector.

Implementation

void setAt(int index, T value) {
  if (isSameType<T, int>()) return _setAt_int(index, value as int);
  if (isSameType<T, String>()) return _setAt_String(index, value as String);
  if (isSameType<T, Uri>()) return _setAt_Uri(index, value as Uri);
  if (isSubtypeOfWinRTEnum<T>()) {
    return _setAt_enum(index, value as WinRTEnum);
  }

  return _setAt_COMObject(index, value);
}