indexOf method

bool indexOf(
  1. T value,
  2. Pointer<Uint32> index
)

Retrieves the index of a specified item in the vector view.

Does not work for Uri values.

Implementation

bool indexOf(T value, Pointer<Uint32> index) {
  if (isSameType<T, int>()) return _indexOf_int(value as int, index);
  if (isSameType<T, Uri>()) return _indexOf_Uri(value as Uri, index);
  if (isSameType<T, String>()) return _indexOf_String(value as String, index);
  if (isSubtypeOfWinRTEnum<T>()) {
    return _indexOf_enum(value as WinRTEnum, index);
  }

  return _indexOf_COMObject(value, index);
}