iterator property

Iterator<T> get iterator

Gets an object that you can use for iterating over the List. The key will be an integer from zero to the count-1. The value will be the item at that index in the list. Typical usage:

  var it = aList.iterator;
  while (it.next()) {
    . . . "index: " + it.key + " value: " + it.value . . .
  }

Implementation

_i3.Iterator<T> get iterator => _i4.getProperty(
      this,
      'iterator',
    );
set iterator (Iterator<T> value)

Implementation

set iterator(_i3.Iterator<T> value) {
  _i4.setProperty(
    this,
    'iterator',
    value,
  );
}