W3cubDocs

/Dart 2

operator [] method

SourceBuffer operator [] (int index)

Returns the object at the given index in the list or throws a RangeError if index is out of bounds.

Implementation

SourceBuffer operator [](int index) {
  if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
    throw new RangeError.index(index, this);
  return JS("SourceBuffer", "#[#]", this, index);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/SourceBufferList/operator_get.html