elementAt method
- intindex
override
Returns theindexth element.
Theindex must be non-negative and less thanlength.Index zero represents the first element (soiterable.elementAt(0) isequivalent toiterable.first).
May iterate through the elements in iteration order, ignoring thefirstindex elements and then returning the next.Some iterables may have a more efficient way to find the element.
Example:
final numbers = <int>[1, 2, 3, 5, 6, 7];final elementAt = numbers.elementAt(4); // 6Implementation
Plugin elementAt(int index) => this[index];