An immutable list containing HTML elements. This list contains some additional methods when compared to regular lists for ease of CSS manipulation on a group of elements.

Extends
  • Object
  • ListBase<T>
  • ElementList

Properties

CssRect borderEdge
read-only
Access dimensions and position of the first Element's content + padding + border box in this list.
CssClassSet classes
read / write
The union of all CSS classes applied to the elements in this list.
CssRect contentEdge
read-only
Access dimensions and position of the Elements in this list.
T first
read-only, inherited
bool isEmpty
read-only, inherited
bool isNotEmpty
read-only, inherited
Iterator<T> iterator
read-only, inherited
T last
read-only, inherited
int length
read / write, inherited
Returns the number of objects in this list.
CssRect marginEdge
read-only
Access dimensions and position of the first Element's content + padding + border + margin box in this list.
ElementStream<Event> onAbort
read-only
Stream of abort events handled by this Element.
ElementStream<Event> onBeforeCopy
read-only
Stream of beforecopy events handled by this Element.
ElementStream<Event> onBeforeCut
read-only
Stream of beforecut events handled by this Element.
ElementStream<Event> onBeforePaste
read-only
Stream of beforepaste events handled by this Element.
ElementStream<Event> onBlur
read-only
Stream of blur events handled by this Element.
ElementStream<Event> onCanPlay
read-only
ElementStream<Event> onCanPlayThrough
read-only
ElementStream<Event> onChange
read-only
Stream of change events handled by this Element.
ElementStream<MouseEvent> onClick
read-only
Stream of click events handled by this Element.
ElementStream<MouseEvent> onContextMenu
read-only
Stream of contextmenu events handled by this Element.
ElementStream<Event> onCopy
read-only
Stream of copy events handled by this Element.
ElementStream<Event> onCut
read-only
Stream of cut events handled by this Element.
ElementStream<Event> onDoubleClick
read-only
Stream of doubleclick events handled by this Element.
ElementStream<MouseEvent> onDrag
read-only
A stream of drag events fired when this element currently being dragged.
ElementStream<MouseEvent> onDragEnd
read-only
A stream of dragend events fired when this element completes a drag operation.
ElementStream<MouseEvent> onDragEnter
read-only
A stream of dragenter events fired when a dragged object is first dragged over this element.
ElementStream<MouseEvent> onDragLeave
read-only
A stream of dragleave events fired when an object being dragged over this element leaves this element's target area.
ElementStream<MouseEvent> onDragOver
read-only
A stream of dragover events fired when a dragged object is currently being dragged over this element.
ElementStream<MouseEvent> onDragStart
read-only
A stream of dragstart events fired when this element starts being dragged.
ElementStream<MouseEvent> onDrop
read-only
A stream of drop events fired when a dragged object is dropped on this element.
ElementStream<Event> onDurationChange
read-only
ElementStream<Event> onEmptied
read-only
ElementStream<Event> onEnded
read-only
ElementStream<Event> onError
read-only
Stream of error events handled by this Element.
ElementStream<Event> onFocus
read-only
Stream of focus events handled by this Element.
ElementStream<Event> onFullscreenChange
read-only
Stream of fullscreenchange events handled by this Element.
ElementStream<Event> onFullscreenError
read-only
Stream of fullscreenerror events handled by this Element.
ElementStream<Event> onInput
read-only
Stream of input events handled by this Element.
ElementStream<Event> onInvalid
read-only
Stream of invalid events handled by this Element.
ElementStream<KeyboardEvent> onKeyDown
read-only
Stream of keydown events handled by this Element.
ElementStream<KeyboardEvent> onKeyPress
read-only
Stream of keypress events handled by this Element.
ElementStream<KeyboardEvent> onKeyUp
read-only
Stream of keyup events handled by this Element.
ElementStream<Event> onLoad
read-only
Stream of load events handled by this Element.
ElementStream<Event> onLoadedData
read-only
ElementStream<Event> onLoadedMetadata
read-only
ElementStream<MouseEvent> onMouseDown
read-only
Stream of mousedown events handled by this Element.
ElementStream<MouseEvent> onMouseEnter
read-only
Stream of mouseenter events handled by this Element.
ElementStream<MouseEvent> onMouseLeave
read-only
Stream of mouseleave events handled by this Element.
ElementStream<MouseEvent> onMouseMove
read-only
Stream of mousemove events handled by this Element.
ElementStream<MouseEvent> onMouseOut
read-only
Stream of mouseout events handled by this Element.
ElementStream<MouseEvent> onMouseOver
read-only
Stream of mouseover events handled by this Element.
ElementStream<MouseEvent> onMouseUp
read-only
Stream of mouseup events handled by this Element.
ElementStream<WheelEvent> onMouseWheel
read-only
Stream of mousewheel events handled by this Element.
ElementStream<Event> onPaste
read-only
Stream of paste events handled by this Element.
ElementStream<Event> onPause
read-only
ElementStream<Event> onPlay
read-only
ElementStream<Event> onPlaying
read-only
ElementStream<Event> onRateChange
read-only
ElementStream<Event> onReset
read-only
Stream of reset events handled by this Element.
ElementStream<Event> onResize
read-only
ElementStream<Event> onScroll
read-only
Stream of scroll events handled by this Element.
ElementStream<Event> onSearch
read-only
Stream of search events handled by this Element.
ElementStream<Event> onSeeked
read-only
ElementStream<Event> onSeeking
read-only
ElementStream<Event> onSelect
read-only
Stream of select events handled by this Element.
ElementStream<Event> onSelectStart
read-only
Stream of selectstart events handled by this Element.
ElementStream<Event> onStalled
read-only
ElementStream<Event> onSubmit
read-only
Stream of submit events handled by this Element.
ElementStream<Event> onSuspend
read-only
ElementStream<Event> onTimeUpdate
read-only
ElementStream<TouchEvent> onTouchCancel
read-only
Stream of touchcancel events handled by this Element.
ElementStream<TouchEvent> onTouchEnd
read-only
Stream of touchend events handled by this Element.
ElementStream<TouchEvent> onTouchEnter
read-only
Stream of touchenter events handled by this Element.
ElementStream<TouchEvent> onTouchLeave
read-only
Stream of touchleave events handled by this Element.
ElementStream<TouchEvent> onTouchMove
read-only
Stream of touchmove events handled by this Element.
ElementStream<TouchEvent> onTouchStart
read-only
Stream of touchstart events handled by this Element.
ElementStream<TransitionEvent> onTransitionEnd
read-only
Stream of transitionend events handled by this Element.
ElementStream<Event> onVolumeChange
read-only
ElementStream<Event> onWaiting
read-only
CssRect paddingEdge
read-only
Access dimensions and position of the first Element's content + padding box in this list.
Iterable<T> reversed
read-only, inherited
T single
read-only, inherited
CssStyleDeclarationBase style
read-only
Access the union of all CssStyleDeclarations that are associated with an ElementList.

Constructors

ElementList()

Operators

operator [](int index) → T
inherited
Returns the object at the given index in the list or throws a RangeError if index is out of bounds.
operator []=(int index, T value) → void
inherited
Sets the value at the given index in the list to value or throws a RangeError if index is out of bounds.

Methods

add(T element) → void
inherited
Adds value to the end of this list, extending the length by one.
addAll(Iterable<T> iterable) → void
inherited
Appends all objects of iterable to the end of this list.
any(bool test(E element)) → bool
inherited
Checks whether any element of this iterable satisfies test.
asMap() → Map<int,T>
inherited
Returns an unmodifiable Map view of this.
clear() → void
inherited
Removes all objects from this list; the length of the list becomes zero.
contains(Object element) → bool
inherited
Returns true if the collection contains an element equal to element.
elementAt(int index) → T
inherited
Returns the indexth element.
every(bool test(E element)) → bool
inherited
Checks whether every element of this iterable satisfies test.
expand(Iterable f(E element)) → Iterable
inherited
Expands each element of this Iterableinto zero or more elements.
fillRange(int start, int end, [T fill]) → void
inherited
Sets the objects in the range start inclusive to end exclusive to the given fillValue.
firstWhere(bool test(E element), {E orElse()}) → T
inherited
Returns the first element that satisfies the given predicate test.
fold(initialValue, dynamic combine(previousValue, E element)) → dynamic
inherited
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
forEach(void action(E element)) → void
inherited
Applies the function f to each element of this collection in iteration order.
getRange(int start, int end) → Iterable<T>
inherited
Returns an Iterable that iterates over the objects in the range start inclusive to end exclusive.
indexOf(Object element, [int startIndex = 0]) → int
inherited
Returns the first index of element in this list.
insert(int index, T element) → void
inherited
Inserts the object at position index in this list.
insertAll(int index, Iterable<T> iterable) → void
inherited
Inserts all objects of iterable at position index in this list.
join([String separator = ""]) → String
inherited
Converts each element to a String and concatenates the strings.
lastIndexOf(Object element, [int startIndex]) → int
inherited
Returns the last index in the list a of the given element, starting the search at index startIndex to 0. Returns -1 if element is not found.
lastWhere(bool test(E element), {E orElse()}) → T
inherited
Returns the last element that satisfies the given predicate test.
map(dynamic f(E element)) → Iterable
inherited
Returns a new lazy Iterable with elements that are created by calling f on each element of this Iterable in iteration order.
reduce(E combine(E previousValue, E element)) → T
inherited
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
remove(Object element) → bool
inherited
Removes the first occurence of value from this list.
removeAt(int index) → T
inherited
Removes the object at position index from this list.
removeLast() → T
inherited
Pops and returns the last object in this list.
removeRange(int start, int end) → void
inherited
Removes the objects in the range start inclusive to end exclusive.
removeWhere(bool test(E element)) → void
inherited
Removes all objects from this list that satisfy test.
replaceRange(int start, int end, Iterable<T> newContents) → void
inherited
Removes the objects in the range start inclusive to end exclusive and inserts the contents of replacement in its place.
retainWhere(bool test(E element)) → void
inherited
Removes all objects from this list that fail to satisfy test.
setAll(int index, Iterable<T> iterable) → void
inherited
Overwrites objects of this with the objects of iterable, starting at position index in this list.
setRange(int start, int end, Iterable<T> iterable, [int skipCount = 0]) → void
inherited
Copies the objects of iterable, skipping skipCount objects first, into the range start, inclusive, to end, exclusive, of the list.
shuffle([Random random]) → void
inherited
Shuffles the elements of this list randomly.
singleWhere(bool test(E element)) → T
inherited
Returns the single element that satisfies test.
skip(int count) → Iterable<T>
inherited
Returns an Iterable that provides all but the first count elements.
skipWhile(bool test(E element)) → Iterable<T>
inherited
Returns an Iterable that skips leading elements while test is satisfied.
sort([int compare(E a, E b)]) → void
inherited
Sorts this list according to the order specified by the compare function.
sublist(int start, [int end]) → List<T>
inherited
Returns a new list containing the objects from start inclusive to end exclusive.
take(int count) → Iterable<T>
inherited
Returns a lazy iterable of the count first elements of this iterable.
takeWhile(bool test(E element)) → Iterable<T>
inherited
Returns a lazy iterable of the leading elements satisfying test.
toList({bool growable: true}) → List<T>
inherited
Creates a List containing the elements of this Iterable.
toSet() → Set<T>
inherited
Creates a Set containing the same elements as this iterable.
toString() → String
inherited
Returns a string representation of this object.
where(bool test(E element)) → Iterable<T>
inherited
Returns a new lazy Iterable with all elements that satisfy the predicate test.