HTMLCollectionBase class

A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.

MDN Reference

Implementers
Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

HTMLCollectionBase({num? length, Element? item(num)?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
item Element? Function(num)

Available on HTMLCollectionBase, provided by the HTMLCollectionBase$Typings extension

getter/setter pair
length num

Available on HTMLCollectionBase, provided by the HTMLCollectionBase$Typings extension

Sets or retrieves the number of objects in a collection.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](num index) Element

Available on HTMLCollectionBase, provided by the HTMLCollectionBase$Typings extension

operator []=(num index, Element value) → void

Available on HTMLCollectionBase, provided by the HTMLCollectionBase$Typings extension