Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. PluginArray
  4. elementAt method
elementAt
description

elementAt method

PluginelementAt(
  1. 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); // 6

Implementation

Plugin elementAt(int index) => this[index];
  1. Dart
  2. dart:html
  3. PluginArray
  4. elementAt method
PluginArray class

[8]ページ先頭

©2009-2025 Movatter.jp