ElementList<T extends Element> classabstract
An immutable list containing HTML elements. This list contains someadditional methods when compared to regular lists for ease of CSSmanipulation on a group of elements.
Constructors
Properties
- borderEdge→CssRect
- Access dimensions and position of the firstElement's content + padding +border box in this list.no setter
- classes↔CssClassSet
- The union of all CSS classes applied to the elements in this list.getter/setter pair
- contentEdge→CssRect
- Access dimensions and position of theElements in this list.no setter
- first↔ T
- The first element.getter/setter pairinherited
- hashCode→int
- The hash code for this object.no setterinherited
- isEmpty→bool
- Whether this collection has no elements.no setterinherited
- isNotEmpty→bool
- Whether this collection has at least one element.no setterinherited
- iterator→Iterator<
T> - A new
Iteratorthat allows iterating the elements of thisIterable.no setterinherited - last↔ T
- The last element.getter/setter pairinherited
- length↔int
- The number of objects in this list.getter/setter pairinherited
- marginEdge→CssRect
- Access dimensions and position of the firstElement's content + padding +border + margin box in this list.no setter
- onAbort→ElementStream<
Event> - Stream of
abortevents handled by thisElement.no setter - onBeforeCopy→ElementStream<
Event> - Stream of
beforecopyevents handled by thisElement.no setter - onBeforeCut→ElementStream<
Event> - Stream of
beforecutevents handled by thisElement.no setter - onBeforePaste→ElementStream<
Event> - Stream of
beforepasteevents handled by thisElement.no setter - onBlur→ElementStream<
Event> - Stream of
blurevents handled by thisElement.no setter - onCanPlay→ElementStream<
Event> - no setter
- onCanPlayThrough→ElementStream<
Event> - no setter
- onChange→ElementStream<
Event> - Stream of
changeevents handled by thisElement.no setter - onClick→ElementStream<
MouseEvent> - Stream of
clickevents handled by thisElement.no setter - onContextMenu→ElementStream<
MouseEvent> - Stream of
contextmenuevents handled by thisElement.no setter - onCopy→ElementStream<
ClipboardEvent> - Stream of
copyevents handled by thisElement.no setter - onCut→ElementStream<
ClipboardEvent> - Stream of
cutevents handled by thisElement.no setter - onDoubleClick→ElementStream<
Event> - Stream of
doubleclickevents handled by thisElement.no setter - onDrag→ElementStream<
MouseEvent> - A stream of
dragevents fired when this element currently being dragged.no setter - onDragEnd→ElementStream<
MouseEvent> - A stream of
dragendevents fired when this element completes a dragoperation.no setter - onDragEnter→ElementStream<
MouseEvent> - A stream of
dragenterevents fired when a dragged object is first draggedover this element.no setter - onDragLeave→ElementStream<
MouseEvent> - A stream of
dragleaveevents fired when an object being dragged over thiselement leaves this element's target area.no setter - onDragOver→ElementStream<
MouseEvent> - A stream of
dragoverevents fired when a dragged object is currentlybeing dragged over this element.no setter - onDragStart→ElementStream<
MouseEvent> - A stream of
dragstartevents fired when this element starts beingdragged.no setter - onDrop→ElementStream<
MouseEvent> - A stream of
dropevents fired when a dragged object is dropped on thiselement.no setter - onDurationChange→ElementStream<
Event> - no setter
- onEmptied→ElementStream<
Event> - no setter
- onEnded→ElementStream<
Event> - no setter
- onError→ElementStream<
Event> - Stream of
errorevents handled by thisElement.no setter - onFocus→ElementStream<
Event> - Stream of
focusevents handled by thisElement.no setter - onFullscreenChange→ElementStream<
Event> - Stream of
fullscreenchangeevents handled by thisElement.no setter - onFullscreenError→ElementStream<
Event> - Stream of
fullscreenerrorevents handled by thisElement.no setter - onInput→ElementStream<
Event> - Stream of
inputevents handled by thisElement.no setter - onInvalid→ElementStream<
Event> - Stream of
invalidevents handled by thisElement.no setter - onKeyDown→ElementStream<
KeyboardEvent> - Stream of
keydownevents handled by thisElement.no setter - onKeyPress→ElementStream<
KeyboardEvent> - Stream of
keypressevents handled by thisElement.no setter - onKeyUp→ElementStream<
KeyboardEvent> - Stream of
keyupevents handled by thisElement.no setter - onLoad→ElementStream<
Event> - Stream of
loadevents handled by thisElement.no setter - onLoadedData→ElementStream<
Event> - no setter
- onLoadedMetadata→ElementStream<
Event> - no setter
- onMouseDown→ElementStream<
MouseEvent> - Stream of
mousedownevents handled by thisElement.no setter - onMouseEnter→ElementStream<
MouseEvent> - Stream of
mouseenterevents handled by thisElement.no setter - onMouseLeave→ElementStream<
MouseEvent> - Stream of
mouseleaveevents handled by thisElement.no setter - onMouseMove→ElementStream<
MouseEvent> - Stream of
mousemoveevents handled by thisElement.no setter - onMouseOut→ElementStream<
MouseEvent> - Stream of
mouseoutevents handled by thisElement.no setter - onMouseOver→ElementStream<
MouseEvent> - Stream of
mouseoverevents handled by thisElement.no setter - onMouseUp→ElementStream<
MouseEvent> - Stream of
mouseupevents handled by thisElement.no setter - onMouseWheel→ElementStream<
WheelEvent> - Stream of
mousewheelevents handled by thisElement.no setter - onPaste→ElementStream<
ClipboardEvent> - Stream of
pasteevents handled by thisElement.no setter - onPause→ElementStream<
Event> - no setter
- onPlay→ElementStream<
Event> - no setter
- onPlaying→ElementStream<
Event> - no setter
- onRateChange→ElementStream<
Event> - no setter
- onReset→ElementStream<
Event> - Stream of
resetevents handled by thisElement.no setter - onResize→ElementStream<
Event> - no setter
- onScroll→ElementStream<
Event> - Stream of
scrollevents handled by thisElement.no setter - onSearch→ElementStream<
Event> - Stream of
searchevents handled by thisElement.no setter - onSeeked→ElementStream<
Event> - no setter
- onSeeking→ElementStream<
Event> - no setter
- onSelect→ElementStream<
Event> - Stream of
selectevents handled by thisElement.no setter - onSelectStart→ElementStream<
Event> - Stream of
selectstartevents handled by thisElement.no setter - onStalled→ElementStream<
Event> - no setter
- onSubmit→ElementStream<
Event> - Stream of
submitevents handled by thisElement.no setter - onSuspend→ElementStream<
Event> - no setter
- onTimeUpdate→ElementStream<
Event> - no setter
- onTouchCancel→ElementStream<
TouchEvent> - Stream of
touchcancelevents handled by thisElement.no setter - onTouchEnd→ElementStream<
TouchEvent> - Stream of
touchendevents handled by thisElement.no setter - onTouchEnter→ElementStream<
TouchEvent> - Stream of
touchenterevents handled by thisElement.no setter - onTouchLeave→ElementStream<
TouchEvent> - Stream of
touchleaveevents handled by thisElement.no setter - onTouchMove→ElementStream<
TouchEvent> - Stream of
touchmoveevents handled by thisElement.no setter - onTouchStart→ElementStream<
TouchEvent> - Stream of
touchstartevents handled by thisElement.no setter - onTransitionEnd→ElementStream<
TransitionEvent> - Stream of
transitionendevents handled by thisElement.no setter - onVolumeChange→ElementStream<
Event> - no setter
- onWaiting→ElementStream<
Event> - no setter
- onWheel→ElementStream<
WheelEvent> - no setter
- paddingEdge→CssRect
- Access dimensions and position of the firstElement's content + paddingbox in this list.no setter
- reversed→Iterable<
T> - AnIterable of the objects in this list in reverse order.no setterinherited
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- single→ T
- Checks that this iterable has only one element, and returns that element.no setterinherited
- style→CssStyleDeclarationBase
- Access the union of allCssStyleDeclarations that are associated with anElementList.no setter
Methods
- add(
Telement)→ void - Adds
valueto the end of this list,extending the length by one.inherited - addAll(
Iterable< T> iterable)→ void - Appends all objects of
iterableto the end of this list.inherited - any(
booltest(Telement))→bool - Checks whether any element of this iterable satisfies
test.inherited - asMap(
)→Map< int,T> - An unmodifiableMap view of this list.inherited
- cast<
R> ()→List< R> - Returns a view of this list as a list of
Rinstances.inherited - clear(
)→ void - Removes all objects from this list; the length of the list becomes zero.inherited
- contains(
Object?element)→bool - Whether the collection contains an element equal to
element.inherited - elementAt(
intindex)→ T - Returns the
indexth element.inherited - every(
booltest(Telement))→bool - Checks whether every element of this iterable satisfies
test.inherited - expand<
T> (Iterable< T> f(Telement))→Iterable<T> - Expands each element of thisIterable into zero or more elements.inherited
- fillRange(
intstart,intend, [T?fill])→ void - Overwrites a range of elements with
fillValue.inherited - firstWhere(
booltest(Telement), {TorElse()?})→ T - The first element that satisfies the given predicate
test.inherited - fold<
T> (TinitialValue,Tcombine(TpreviousValue,Telement))→ T - Reduces a collection to a single value by iteratively combining eachelement of the collection with an existing valueinherited
- followedBy(
Iterable< T> other)→Iterable<T> - Creates the lazy concatenation of this iterable and
other.inherited - forEach(
voidaction(Telement))→ void - Invokes
actionon each element of this iterable in iteration order.inherited - getRange(
intstart,intend)→Iterable< T> - Creates anIterable that iterates over a range of elements.inherited
- indexOf(
Object?element, [intstart =0])→int - The first index of
elementin this list.inherited - indexWhere(
booltest(Telement), [intstart =0])→int - The first index in the list that satisfies the provided
test.inherited - insert(
intindex,Telement)→ void - Inserts
elementat positionindexin this list.inherited - insertAll(
intindex,Iterable< T> iterable)→ void - Inserts all objects of
iterableat positionindexin this list.inherited - join(
[Stringseparator =""])→String - Converts each element to aString and concatenates the strings.inherited
- lastIndexOf(
Object?element, [int?start])→int - The last index of
elementin this list.inherited - lastIndexWhere(
booltest(Telement), [int?start])→int - The last index in the list that satisfies the provided
test.inherited - lastWhere(
booltest(Telement), {TorElse()?})→ T - The last element that satisfies the given predicate
test.inherited - map<
T> (Tf(Telement))→Iterable< T> - The current elements of this iterable modified by
toElement.inherited - noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- reduce(
Tcombine(TpreviousValue,Telement))→ T - Reduces a collection to a single value by iteratively combining elementsof the collection using the provided function.inherited
- remove(
Object?element)→bool - Removes the first occurrence of
valuefrom this list.inherited - removeAt(
intindex)→ T - Removes the object at position
indexfrom this list.inherited - removeLast(
)→ T - Removes and returns the last object in this list.inherited
- removeRange(
intstart,intend)→ void - Removes a range of elements from the list.inherited
- removeWhere(
booltest(Telement))→ void - Removes all objects from this list that satisfy
test.inherited - replaceRange(
intstart,intend,Iterable< T> newContents)→ void - Replaces a range of elements with the elements of
replacements.inherited - retainWhere(
booltest(Telement))→ void - Removes all objects from this list that fail to satisfy
test.inherited - setAll(
intindex,Iterable< T> iterable)→ void - Overwrites elements with the objects of
iterable.inherited - setRange(
intstart,intend,Iterable< T> iterable, [intskipCount =0])→ void - Writes some elements of
iterableinto a range of this list.inherited - shuffle(
[Random?random])→ void - Shuffles the elements of this list randomly.inherited
- singleWhere(
booltest(Telement), {TorElse()?})→ T - The single element that satisfies
test.inherited - skip(
intcount)→Iterable< T> - Creates anIterable that provides all but the first
countelements.inherited - skipWhile(
booltest(Telement))→Iterable< T> - Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited - sort(
[intcompare(Ta,Tb)?])→ void - Sorts this list according to the order specified by the
comparefunction.inherited - sublist(
intstart, [int?end])→List< T> - Returns a new list containing the elements between
startandend.inherited - take(
intcount)→Iterable< T> - Creates a lazy iterable of the
countfirst elements of this iterable.inherited - takeWhile(
booltest(Telement))→Iterable< T> - Creates a lazy iterable of the leading elements satisfying
test.inherited - toList(
{boolgrowable =true})→List< T> - Creates aList containing the elements of thisIterable.inherited
- toSet(
)→Set< T> - Creates aSet containing the same elements as this iterable.inherited
- toString(
)→String - A string representation of this object.inherited
- where(
booltest(Telement))→Iterable< T> - Creates a new lazyIterable with all elements that satisfy thepredicate
test.inherited - whereType<
T> ()→Iterable< T> - Creates a new lazyIterable with all elements that have type
T.inherited
Operators
- operator +(
List< T> other)→List<T> - Returns the concatenation of this list and
other.inherited - operator ==(
Objectother)→bool - The equality operator.inherited
- operator [](
intindex)→ T - The object at the given
indexin the list.inherited - operator []=(
intindex,Tvalue)→ void - Sets the value at the given
indexin the list tovalue.inherited