ChildList class final
The children of a render object or group, flattening groups during iteration.
Mutation during iteration is unsupported.
- Mixed-in types
Properties
- first → MarkupRenderObject
-
The first element.
no setterinherited
- firstNode → ChildNode?
-
The first direct entry of this list, or
nullif it is empty.no setter - 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<
MarkupRenderObject> -
A new
Iteratorthat allows iterating the elements of thisIterable.no setteroverride - last → MarkupRenderObject
-
The last element.
no setterinherited
- lastNode → ChildNode?
-
The last direct entry of this list, or
nullif it is empty.no setter - length → int
-
The number of elements in this Iterable.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → MarkupRenderObject
-
Checks that this iterable has only one element, and returns that element.
no setterinherited
Methods
-
any(
bool test(MarkupRenderObject element)) → bool -
Checks whether any element of this iterable satisfies
test.inherited -
capture(
) → ChildGroup - Moves all entries of this list into a new detached group, leaving this list empty.
-
cast<
R> () → Iterable< R> -
A view of this iterable as an iterable of
Rinstances.inherited -
contains(
Object? element) → bool -
Whether
elementis in this list, possibly inside groups, but not inside fragments.override -
elementAt(
int index) → MarkupRenderObject -
Returns the
indexth element.inherited -
every(
bool test(MarkupRenderObject element)) → bool -
Checks whether every element of this iterable satisfies
test.inherited -
expand<
T> (Iterable< T> toElements(MarkupRenderObject element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
findWhere<
T extends MarkupRenderObject> (bool test(T), {bool visitFragments = true}) → T? -
Returns the first render object of type
Tthat satisfiestest. -
findWithBoundaries(
MarkupRenderObject child) → ChildNode? -
Returns the outermost group created by
wrapElementaroundchild, orchilditself if it has none. -
firstWhere(
bool test(MarkupRenderObject element), {MarkupRenderObject orElse()?}) → MarkupRenderObject -
The first element that satisfies the given predicate
test.inherited -
fold<
T> (T initialValue, T combine(T previousValue, MarkupRenderObject element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
inherited
-
followedBy(
Iterable< MarkupRenderObject> other) → Iterable<MarkupRenderObject> -
Creates the lazy concatenation of this iterable and
other.inherited -
forEach(
void action(covariant MarkupRenderObject child)) → void -
Invokes
actionon each element of this iterable in iteration order.inherited -
insertAfter(
ChildNode node, {ChildNode? after}) → void -
Inserts
nodeafterafter, or at the start ifafterisnull. -
insertBefore(
ChildNode node, {ChildNode? before}) → void -
Inserts
nodebeforebefore, or at the end ifbeforeisnull. -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
lastWhere(
bool test(MarkupRenderObject element), {MarkupRenderObject orElse()?}) → MarkupRenderObject -
The last element that satisfies the given predicate
test.inherited -
map<
T> (T toElement(MarkupRenderObject e)) → Iterable< T> -
The current elements of this iterable modified by
toElement.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduce(
MarkupRenderObject combine(MarkupRenderObject value, MarkupRenderObject element)) → MarkupRenderObject -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
remove(
ChildNode node) → void -
Detaches
nodeif it is in this list, possibly inside groups. -
singleWhere(
bool test(MarkupRenderObject element), {MarkupRenderObject orElse()?}) → MarkupRenderObject -
The single element that satisfies
test.inherited -
skip(
int count) → Iterable< MarkupRenderObject> -
Creates an Iterable that provides all but the first
countelements.inherited -
skipWhile(
bool test(MarkupRenderObject element)) → Iterable< MarkupRenderObject> -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
take(
int count) → Iterable< MarkupRenderObject> -
Creates a lazy iterable of the
countfirst elements of this iterable.inherited -
takeWhile(
bool test(MarkupRenderObject element)) → Iterable< MarkupRenderObject> -
Creates a lazy iterable of the leading elements satisfying
test.inherited -
toList(
{bool growable = true}) → List< MarkupRenderObject> -
Creates a List containing the elements of this Iterable.
inherited
-
toSet(
) → Set< MarkupRenderObject> -
Creates a Set containing the same elements as this iterable.
inherited
-
toString(
) → String -
Returns a string representation of (some of) the elements of
this.inherited -
where(
bool test(MarkupRenderObject element)) → Iterable< MarkupRenderObject> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.inherited -
whereType<
T> () → Iterable< R> -
Creates a new lazy Iterable with all elements that have type
T.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited