current property

T get current

Gets the current item in the collection.

Implementation

T get current {
  if (isSameType<T, int>()) return _current_int() as T;
  if (isSameType<T, String>()) return _current_String() as T;
  if (isSameType<T, Uri>()) return _current_Uri() as T;
  if (isSubtypeOfWinRTEnum<T>()) return _enumCreator!(_current_int());
  return _creator!(_current_COMObject());
}