elementAt method
E elementAt(Returns the index
th element.
The index
must be non-negative and less than length
. Index zero represents the first element (so iterable.elementAt(0)
is equivalent to iterable.first
).
May iterate through the elements in iteration order, skipping the first index
elements and returning the next. Some iterable may have more efficient ways to find the element.
Source
E elementAt(int index) { RangeError.checkValidIndex(index, this); return _table[(_head + index) & (_table.length - 1)]; }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-collection/ListQueue/elementAt.html