ElementList<T extends Element> class
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.
Constructors
Properties
- borderEdge → CssRect read-only
- Access dimensions and position of the first Element's content + padding + border box in this list. [...]
- classes ↔ CssClassSet read / write
- The union of all CSS classes applied to the elements in this list. [...]
- contentEdge → CssRect read-only
- Access dimensions and position of the Elements in this list. [...]
- first ↔ T read / write, inherited
- Returns the first element. [...]
- hashCode → int read-only, inherited
- The hash code for this object. [...]
- isEmpty → bool read-only, inherited
- Returns
trueif there are no elements in this collection. [...] - isNotEmpty → bool read-only, inherited
- Returns true if there is at least one element in this collection. [...]
- iterator → Iterator<
T> read-only, inherited - Returns a new
Iteratorthat allows iterating the elements of thisIterable. [...] - last ↔ T read / write, inherited
- Returns the last element. [...]
- length ↔ int read / write, inherited
- The number of objects in this list. [...]
- marginEdge → CssRect read-only
- Access dimensions and position of the first Element's content + padding + border + margin box in this list. [...]
- onAbort → ElementStream<
Event> read-only - Stream of
abortevents handled by this Element. - onBeforeCopy → ElementStream<
Event> read-only - Stream of
beforecopyevents handled by this Element. - onBeforeCut → ElementStream<
Event> read-only - Stream of
beforecutevents handled by this Element. - onBeforePaste → ElementStream<
Event> read-only - Stream of
beforepasteevents handled by this Element. - onBlur → ElementStream<
Event> read-only - Stream of
blurevents handled by this Element. - onCanPlay → ElementStream<
Event> read-only - onCanPlayThrough → ElementStream<
Event> read-only - onChange → ElementStream<
Event> read-only - Stream of
changeevents handled by this Element. - onClick → ElementStream<
MouseEvent> read-only - Stream of
clickevents handled by this Element. - onContextMenu → ElementStream<
MouseEvent> read-only - Stream of
contextmenuevents handled by this Element. - onCopy → ElementStream<
ClipboardEvent> read-only - Stream of
copyevents handled by this Element. - onCut → ElementStream<
ClipboardEvent> read-only - Stream of
cutevents handled by this Element. - onDoubleClick → ElementStream<
Event> @DomName('Element.ondblclick'), read-only - Stream of
doubleclickevents handled by this Element. - onDrag → ElementStream<
MouseEvent> read-only - A stream of
dragevents fired when this element currently being dragged. [...] - onDragEnd → ElementStream<
MouseEvent> read-only - A stream of
dragendevents fired when this element completes a drag operation. [...] - onDragEnter → ElementStream<
MouseEvent> read-only - A stream of
dragenterevents fired when a dragged object is first dragged over this element. [...] - onDragLeave → ElementStream<
MouseEvent> read-only - A stream of
dragleaveevents fired when an object being dragged over this element leaves this element's target area. [...] - onDragOver → ElementStream<
MouseEvent> read-only - A stream of
dragoverevents fired when a dragged object is currently being dragged over this element. [...] - onDragStart → ElementStream<
MouseEvent> read-only - A stream of
dragstartevents fired when this element starts being dragged. [...] - onDrop → ElementStream<
MouseEvent> read-only - A stream of
dropevents fired when a dragged object is dropped on this element. [...] - onDurationChange → ElementStream<
Event> read-only - onEmptied → ElementStream<
Event> read-only - onEnded → ElementStream<
Event> read-only - onError → ElementStream<
Event> read-only - Stream of
errorevents handled by this Element. - onFocus → ElementStream<
Event> read-only - Stream of
focusevents handled by this Element. - onFullscreenChange → ElementStream<
Event> read-only - Stream of
fullscreenchangeevents handled by this Element. - onFullscreenError → ElementStream<
Event> read-only - Stream of
fullscreenerrorevents handled by this Element. - onInput → ElementStream<
Event> read-only - Stream of
inputevents handled by this Element. - onInvalid → ElementStream<
Event> read-only - Stream of
invalidevents handled by this Element. - onKeyDown → ElementStream<
KeyboardEvent> read-only - Stream of
keydownevents handled by this Element. - onKeyPress → ElementStream<
KeyboardEvent> read-only - Stream of
keypressevents handled by this Element. - onKeyUp → ElementStream<
KeyboardEvent> read-only - Stream of
keyupevents handled by this Element. - onLoad → ElementStream<
Event> read-only - Stream of
loadevents handled by this Element. - onLoadedData → ElementStream<
Event> read-only - onLoadedMetadata → ElementStream<
Event> read-only - onMouseDown → ElementStream<
MouseEvent> read-only - Stream of
mousedownevents handled by this Element. - onMouseEnter → ElementStream<
MouseEvent> read-only - Stream of
mouseenterevents handled by this Element. - onMouseLeave → ElementStream<
MouseEvent> read-only - Stream of
mouseleaveevents handled by this Element. - onMouseMove → ElementStream<
MouseEvent> read-only - Stream of
mousemoveevents handled by this Element. - onMouseOut → ElementStream<
MouseEvent> read-only - Stream of
mouseoutevents handled by this Element. - onMouseOver → ElementStream<
MouseEvent> read-only - Stream of
mouseoverevents handled by this Element. - onMouseUp → ElementStream<
MouseEvent> read-only - Stream of
mouseupevents handled by this Element. - onMouseWheel → ElementStream<
WheelEvent> read-only - Stream of
mousewheelevents handled by this Element. - onPaste → ElementStream<
ClipboardEvent> read-only - Stream of
pasteevents handled by this Element. - onPause → ElementStream<
Event> read-only - onPlay → ElementStream<
Event> read-only - onPlaying → ElementStream<
Event> read-only - onRateChange → ElementStream<
Event> read-only - onReset → ElementStream<
Event> read-only - Stream of
resetevents handled by this Element. - onResize → ElementStream<
Event> read-only - onScroll → ElementStream<
Event> read-only - Stream of
scrollevents handled by this Element. - onSearch → ElementStream<
Event> read-only - Stream of
searchevents handled by this Element. - onSeeked → ElementStream<
Event> read-only - onSeeking → ElementStream<
Event> read-only - onSelect → ElementStream<
Event> read-only - Stream of
selectevents handled by this Element. - onSelectStart → ElementStream<
Event> read-only - Stream of
selectstartevents handled by this Element. - onStalled → ElementStream<
Event> read-only - onSubmit → ElementStream<
Event> read-only - Stream of
submitevents handled by this Element. - onSuspend → ElementStream<
Event> read-only - onTimeUpdate → ElementStream<
Event> read-only - onTouchCancel → ElementStream<
TouchEvent> read-only - Stream of
touchcancelevents handled by this Element. - onTouchEnd → ElementStream<
TouchEvent> read-only - Stream of
touchendevents handled by this Element. - onTouchEnter → ElementStream<
TouchEvent> read-only - Stream of
touchenterevents handled by this Element. - onTouchLeave → ElementStream<
TouchEvent> read-only - Stream of
touchleaveevents handled by this Element. - onTouchMove → ElementStream<
TouchEvent> read-only - Stream of
touchmoveevents handled by this Element. - onTouchStart → ElementStream<
TouchEvent> read-only - Stream of
touchstartevents handled by this Element. - onTransitionEnd → ElementStream<
TransitionEvent> @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), @SupportedBrowser(SupportedBrowser.SAFARI), read-only - Stream of
transitionendevents handled by this Element. - onVolumeChange → ElementStream<
Event> read-only - onWaiting → ElementStream<
Event> read-only - onWheel → ElementStream<
WheelEvent> read-only - paddingEdge → CssRect read-only
- Access dimensions and position of the first Element's content + padding box in this list. [...]
- reversed → Iterable<
T> read-only, inherited - An Iterable of the objects in this list in reverse order.
- runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
- single → T read-only, inherited
- Checks that this iterable has only one element, and returns that element. [...]
- style → CssStyleDeclarationBase read-only
- Access the union of all CssStyleDeclarations that are associated with an ElementList. [...]
Methods
- add(
T element) → void inherited - Adds
valueto the end of this list, extending the length by one. [...] - addAll(
Iterable< T> iterable) → voidinherited - Appends all objects of
iterableto the end of this list. [...] - any(
bool test(T element)) → bool inherited - Checks whether any element of this iterable satisfies
test. [...] - asMap(
) → Map< int, T> inherited - An unmodifiable Map view of this list. [...]
- cast<
R> () → List< R> inherited - Returns a view of this list as a list of
Rinstances. [...] - clear(
) → void inherited - Removes all objects from this list; the length of the list becomes zero. [...]
- contains(
Object? element) → bool inherited - Whether the collection contains an element equal to
element. [...] - elementAt(
int index) → T inherited - Returns the
indexth element. [...] - every(
bool test(T element)) → bool inherited - Checks whether every element of this iterable satisfies
test. [...] - expand<
T> (Iterable< T> f(T element)) → Iterable<T> inherited - Expands each element of this Iterable into zero or more elements. [...]
- fillRange(
int start, int end, [T? fill]) → void inherited - Overwrites a range of elements with
fillValue. [...] - firstWhere(
bool test(T element), {T orElse()}) → T inherited - Returns the first element that satisfies the given predicate
test. [...] - fold<
T> (T initialValue, T combine(T previousValue, T element)) → T inherited - Reduces a collection to a single value by iteratively combining each element of the collection with an existing value [...]
- followedBy(
Iterable< T> other) → Iterable<T> inherited - Returns the lazy concatenation of this iterable and
other. [...] - forEach(
void action(T element)) → void inherited - Applies the function
fto each element of this collection in iteration order. - getRange(
int start, int end) → Iterable< T> inherited - Creates an Iterable that iterates over a range of elements. [...]
- indexOf(
Object? element, [int start = 0]) → int inherited - The first index of
elementin this list. [...] - indexWhere(
bool test(T element), [int start = 0]) → int inherited - The first index in the list that satisfies the provided
test. [...] - insert(
int index, T element) → void inherited - Inserts
elementat positionindexin this list. [...] - insertAll(
int index, Iterable< T> iterable) → voidinherited - Inserts all objects of
iterableat positionindexin this list. [...] - join(
[String separator = ""]) → String inherited - Converts each element to a String and concatenates the strings. [...]
- lastIndexOf(
Object? element, [int? start]) → int inherited - The last index of
elementin this list. [...] - lastIndexWhere(
bool test(T element), [int? start]) → int inherited - The last index in the list that satisfies the provided
test. [...] - lastWhere(
bool test(T element), {T orElse()}) → T inherited - Returns the last element that satisfies the given predicate
test. [...] - map<
T> (T f(T element)) → Iterable< T> inherited - Returns a new lazy Iterable with elements that are created by calling
fon each element of thisIterablein iteration order. [...] - noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]
- reduce(
T combine(T previousValue, T 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 occurrence of
valuefrom this list. [...] - removeAt(
int index) → T inherited - Removes the object at position
indexfrom this list. [...] - removeLast(
) → T inherited - Removes and returns the last object in this list. [...]
- removeRange(
int start, int end) → void inherited - Removes a range of elements from the list. [...]
- removeWhere(
bool test(T element)) → void inherited - Removes all objects from this list that satisfy
test. [...] - replaceRange(
int start, int end, Iterable< T> newContents) → voidinherited - Replaces a range of elements with the elements of
replacement. [...] - retainWhere(
bool test(T element)) → void inherited - Removes all objects from this list that fail to satisfy
test. [...] - setAll(
int index, Iterable< T> iterable) → voidinherited - Overwrites elements with the objects of
iterable. [...] - setRange(
int start, int end, Iterable< T> iterable, [int skipCount = 0]) → voidinherited - Writes some elements of
iterableinto a range of this list. [...] - shuffle(
[Random? random]) → void inherited - Shuffles the elements of this list randomly.
- singleWhere(
bool test(T element), {T orElse()}) → T inherited - Returns the single element that satisfies
test. [...] - skip(
int count) → Iterable< T> inherited - Returns an Iterable that provides all but the first
countelements. [...] - skipWhile(
bool test(T element)) → Iterable< T> inherited - Returns an
Iterablethat skips leading elements whiletestis satisfied. [...] - sort(
[int compare(T a, T b)]) → void inherited - Sorts this list according to the order specified by the
comparefunction. [...] - sublist(
int start, [int? end]) → List< T> inherited - Returns a new list containing the elements between
startandend. [...] - take(
int count) → Iterable< T> inherited - Returns a lazy iterable of the
countfirst elements of this iterable. [...] - takeWhile(
bool test(T 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 - A string representation of this object. [...]
- where(
bool test(T element)) → Iterable< T> inherited - Returns a new lazy Iterable with all elements that satisfy the predicate
test. [...] - whereType<
T> () → Iterable< T> inherited - Returns a new lazy Iterable with all elements that have type
T. [...]
Operators
- operator +(
List< T> other) → List<T> inherited - Returns the concatenation of this list and
other. [...] - operator ==(
Object other) → bool inherited - The equality operator. [...]
- operator [](
int index) → T inherited - The object at the given
indexin the list. [...] - operator []=(
int index, T value) → void inherited - Sets the value at the given
indexin the list tovalue. [...]
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/ElementList-class.html