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-onlyAccess dimensions and position of the first Element's content + padding + border box in this list.
- CssClassSet classes
-
read / writeThe union of all CSS classes applied to the elements in this list.
- CssRect contentEdge
-
read-onlyAccess 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, inheritedReturns the number of objects in this list.
- CssRect marginEdge
-
read-onlyAccess dimensions and position of the first Element's content + padding + border + margin box in this list.
- ElementStream<Event> onAbort
-
read-onlyStream of
abort
events handled by thisElement
. - ElementStream<Event> onBeforeCopy
-
read-onlyStream of
beforecopy
events handled by thisElement
. - ElementStream<Event> onBeforeCut
-
read-onlyStream of
beforecut
events handled by thisElement
. - ElementStream<Event> onBeforePaste
-
read-onlyStream of
beforepaste
events handled by thisElement
. - ElementStream<Event> onBlur
-
read-onlyStream of
blur
events handled by thisElement
. - ElementStream<Event> onCanPlay
-
read-only
- ElementStream<Event> onCanPlayThrough
-
read-only
- ElementStream<Event> onChange
-
read-onlyStream of
change
events handled by thisElement
. - ElementStream<MouseEvent> onClick
-
read-onlyStream of
click
events handled by thisElement
. - ElementStream<MouseEvent> onContextMenu
-
read-onlyStream of
contextmenu
events handled by thisElement
. - ElementStream<Event> onCopy
-
read-onlyStream of
copy
events handled by thisElement
. - ElementStream<Event> onCut
-
read-onlyStream of
cut
events handled by thisElement
. - ElementStream<Event> onDoubleClick
-
read-onlyStream of
doubleclick
events handled by thisElement
. - ElementStream<MouseEvent> onDrag
-
read-onlyA stream of
drag
events fired when this element currently being dragged. - ElementStream<MouseEvent> onDragEnd
-
read-onlyA stream of
dragend
events fired when this element completes a drag operation. - ElementStream<MouseEvent> onDragEnter
-
read-onlyA stream of
dragenter
events fired when a dragged object is first dragged over this element. - ElementStream<MouseEvent> onDragLeave
-
read-onlyA stream of
dragleave
events fired when an object being dragged over this element leaves this element's target area. - ElementStream<MouseEvent> onDragOver
-
read-onlyA stream of
dragover
events fired when a dragged object is currently being dragged over this element. - ElementStream<MouseEvent> onDragStart
-
read-onlyA stream of
dragstart
events fired when this element starts being dragged. - ElementStream<MouseEvent> onDrop
-
read-onlyA 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-onlyStream of
error
events handled by thisElement
. - ElementStream<Event> onFocus
-
read-onlyStream of
focus
events handled by thisElement
. - ElementStream<Event> onFullscreenChange
-
read-onlyStream of
fullscreenchange
events handled by thisElement
. - ElementStream<Event> onFullscreenError
-
read-onlyStream of
fullscreenerror
events handled by thisElement
. - ElementStream<Event> onInput
-
read-onlyStream of
input
events handled by thisElement
. - ElementStream<Event> onInvalid
-
read-onlyStream of
invalid
events handled by thisElement
. - ElementStream<KeyboardEvent> onKeyDown
-
read-onlyStream of
keydown
events handled by thisElement
. - ElementStream<KeyboardEvent> onKeyPress
-
read-onlyStream of
keypress
events handled by thisElement
. - ElementStream<KeyboardEvent> onKeyUp
-
read-onlyStream of
keyup
events handled by thisElement
. - ElementStream<Event> onLoad
-
read-onlyStream of
load
events handled by thisElement
. - ElementStream<Event> onLoadedData
-
read-only
- ElementStream<Event> onLoadedMetadata
-
read-only
- ElementStream<MouseEvent> onMouseDown
-
read-onlyStream of
mousedown
events handled by thisElement
. - ElementStream<MouseEvent> onMouseEnter
-
read-onlyStream of
mouseenter
events handled by thisElement
. - ElementStream<MouseEvent> onMouseLeave
-
read-onlyStream of
mouseleave
events handled by thisElement
. - ElementStream<MouseEvent> onMouseMove
-
read-onlyStream of
mousemove
events handled by thisElement
. - ElementStream<MouseEvent> onMouseOut
-
read-onlyStream of
mouseout
events handled by thisElement
. - ElementStream<MouseEvent> onMouseOver
-
read-onlyStream of
mouseover
events handled by thisElement
. - ElementStream<MouseEvent> onMouseUp
-
read-onlyStream of
mouseup
events handled by thisElement
. - ElementStream<WheelEvent> onMouseWheel
-
read-onlyStream of
mousewheel
events handled by thisElement
. - ElementStream<Event> onPaste
-
read-onlyStream of
paste
events handled by thisElement
. - ElementStream<Event> onPause
-
read-only
- ElementStream<Event> onPlay
-
read-only
- ElementStream<Event> onPlaying
-
read-only
- ElementStream<Event> onRateChange
-
read-only
- ElementStream<Event> onReset
-
read-onlyStream of
reset
events handled by thisElement
. - ElementStream<Event> onResize
-
read-only
- ElementStream<Event> onScroll
-
read-onlyStream of
scroll
events handled by thisElement
. - ElementStream<Event> onSearch
-
read-onlyStream of
search
events handled by thisElement
. - ElementStream<Event> onSeeked
-
read-only
- ElementStream<Event> onSeeking
-
read-only
- ElementStream<Event> onSelect
-
read-onlyStream of
select
events handled by thisElement
. - ElementStream<Event> onSelectStart
-
read-onlyStream of
selectstart
events handled by thisElement
. - ElementStream<Event> onStalled
-
read-only
- ElementStream<Event> onSubmit
-
read-onlyStream of
submit
events handled by thisElement
. - ElementStream<Event> onSuspend
-
read-only
- ElementStream<Event> onTimeUpdate
-
read-only
- ElementStream<TouchEvent> onTouchCancel
-
read-onlyStream of
touchcancel
events handled by thisElement
. - ElementStream<TouchEvent> onTouchEnd
-
read-onlyStream of
touchend
events handled by thisElement
. - ElementStream<TouchEvent> onTouchEnter
-
read-onlyStream of
touchenter
events handled by thisElement
. - ElementStream<TouchEvent> onTouchLeave
-
read-onlyStream of
touchleave
events handled by thisElement
. - ElementStream<TouchEvent> onTouchMove
-
read-onlyStream of
touchmove
events handled by thisElement
. - ElementStream<TouchEvent> onTouchStart
-
read-onlyStream of
touchstart
events handled by thisElement
. - ElementStream<TransitionEvent> onTransitionEnd
-
read-onlyStream of
transitionend
events handled by thisElement
. - ElementStream<Event> onVolumeChange
-
read-only
- ElementStream<Event> onWaiting
-
read-only
- CssRect paddingEdge
-
read-onlyAccess 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-onlyAccess the union of all
CssStyleDeclaration
s that are associated with anElementList
.
Constructors
Operators
-
operator [](
int index) → T -
inheritedReturns the object at the given
index
in the list or throws aRangeError
ifindex
is out of bounds. -
operator []=(
int index, T value) → void -
inheritedSets the value at the given
index
in the list tovalue
or throws aRangeError
ifindex
is out of bounds.
Methods
-
add(
T element) → void -
inheritedAdds
value
to the end of this list, extending the length by one. -
addAll(
Iterable<T> iterable) → void -
inheritedAppends all objects of
iterable
to the end of this list. -
any(
bool test(E element)) → bool -
inheritedChecks whether any element of this iterable satisfies
test
. -
asMap(
) → Map<int,T> -
inheritedReturns an unmodifiable
Map
view ofthis
. -
clear(
) → void -
inheritedRemoves all objects from this list; the length of the list becomes zero.
-
contains(
Object element) → bool -
inheritedReturns true if the collection contains an element equal to
element
. -
elementAt(
int index) → T -
inheritedReturns the
index
th element. -
every(
bool test(E element)) → bool -
inheritedChecks whether every element of this iterable satisfies
test
. -
expand(
Iterable f(E element)) → Iterable -
inheritedExpands each element of this
Iterable
into zero or more elements. -
fillRange(
int start, int end, [T fill]) → void -
inheritedSets the objects in the range
start
inclusive toend
exclusive to the givenfillValue
. -
firstWhere(
bool test(E element), {E orElse()}) → T -
inheritedReturns the first element that satisfies the given predicate
test
. -
fold(
initialValue, dynamic combine(previousValue, E element)) → dynamic -
inheritedReduces a collection to a single value by iteratively combining each element of the collection with an existing value
-
forEach(
void action(E element)) → void -
inheritedApplies the function
f
to each element of this collection in iteration order. -
getRange(
int start, int end) → Iterable<T> -
inheritedReturns an
Iterable
that iterates over the objects in the rangestart
inclusive toend
exclusive. -
indexOf(
Object element, [int startIndex = 0]) → int -
inheritedReturns the first index of
element
in this list. -
insert(
int index, T element) → void -
inheritedInserts the object at position
index
in this list. -
insertAll(
int index, Iterable<T> iterable) → void -
inheritedInserts all objects of
iterable
at positionindex
in this list. -
join(
[String separator = ""]) → String -
inheritedConverts each element to a
String
and concatenates the strings. -
lastIndexOf(
Object element, [int startIndex]) → int -
inheritedReturns the last index in the list
a
of the givenelement
, starting the search at indexstartIndex
to 0. Returns -1 ifelement
is not found. -
lastWhere(
bool test(E element), {E orElse()}) → T -
inheritedReturns the last element that satisfies the given predicate
test
. -
map(
dynamic f(E element)) → Iterable -
inheritedReturns a new lazy
Iterable
with elements that are created by callingf
on each element of thisIterable
in iteration order. -
reduce(
E combine(E previousValue, E element)) → T -
inheritedReduces a collection to a single value by iteratively combining elements of the collection using the provided function.
-
remove(
Object element) → bool -
inheritedRemoves the first occurence of
value
from this list. -
removeAt(
int index) → T -
inheritedRemoves the object at position
index
from this list. -
removeLast(
) → T -
inheritedPops and returns the last object in this list.
-
removeRange(
int start, int end) → void -
inheritedRemoves the objects in the range
start
inclusive toend
exclusive. -
removeWhere(
bool test(E element)) → void -
inheritedRemoves all objects from this list that satisfy
test
. -
replaceRange(
int start, int end, Iterable<T> newContents) → void -
inheritedRemoves the objects in the range
start
inclusive toend
exclusive and inserts the contents ofreplacement
in its place. -
retainWhere(
bool test(E element)) → void -
inheritedRemoves all objects from this list that fail to satisfy
test
. -
setAll(
int index, Iterable<T> iterable) → void -
inheritedOverwrites objects of
this
with the objects ofiterable
, starting at positionindex
in this list. -
setRange(
int start, int end, Iterable<T> iterable, [int skipCount = 0]) → void -
inheritedCopies the objects of
iterable
, skippingskipCount
objects first, into the rangestart
, inclusive, toend
, exclusive, of the list. -
shuffle(
[Random random]) → void -
inheritedShuffles the elements of this list randomly.
-
singleWhere(
bool test(E element)) → T -
inheritedReturns the single element that satisfies
test
. -
skip(
int count) → Iterable<T> -
inheritedReturns an Iterable that provides all but the first
count
elements. -
skipWhile(
bool test(E element)) → Iterable<T> -
inheritedReturns an Iterable that skips leading elements while
test
is satisfied. -
sort(
[int compare(E a, E b)]) → void -
inheritedSorts this list according to the order specified by the
compare
function. -
sublist(
int start, [int end]) → List<T> -
inheritedReturns a new list containing the objects from
start
inclusive toend
exclusive. -
take(
int count) → Iterable<T> -
inheritedReturns a lazy iterable of the
count
first elements of this iterable. -
takeWhile(
bool test(E element)) → Iterable<T> -
inheritedReturns a lazy iterable of the leading elements satisfying
test
. -
toList(
{bool growable: true}) → List<T> -
inheritedCreates a
List
containing the elements of thisIterable
. -
toSet(
) → Set<T> -
inheritedCreates a
Set
containing the same elements as this iterable. -
toString(
) → String -
inheritedReturns a string representation of this object.
-
where(
bool test(E element)) → Iterable<T> -
inheritedReturns a new lazy
Iterable
with all elements that satisfy the predicatetest
.