This class is returned by the DisplayObjectParent.children getter.

It implements an Iterable of display objects and therefore allows an easy iteration over the children of a DisplayObjectParent.

Implements
  • Iterable<T>

Properties

first → T

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
isEmpty → bool

read-only
isNotEmpty → bool

read-only
iterator → Iterator<T>

read-only
last → T

read-only
length → int

read-only
parent DisplayObjectParent

read-only
reversed → Iterable<T>

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
single → T

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited
operator [](int index) → T

operator []=(int index, T displayObject) → void

Methods

add(T displayObject) → void

addAll(Iterable<T> displayObjects) → void

any(bool test(T element)) → bool

Checks whether any element of this iterable satisfies test.

clear() → void

contains(Object element) → bool

Returns true if the collection contains an element equal to element.

elementAt(int index) → T

Returns the indexth element.

every(bool test(T element)) → bool

Checks whether every element of this iterable satisfies test.

expand<S>(Iterable<S> f(T element)) → Iterable<S>

Expands each element of this Iterable into zero or more elements.

firstWhere(bool test(T element), { T orElse() }) → T

Returns the first element that satisfies the given predicate test.

fold<S>(S initialValue, S combine(S previousValue, T element)) → S

Reduces a collection to a single value by iteratively combining each element of the collection with an existing value

forEach(void f(T element)) → void

Applies the function f to each element of this collection in iteration order.

indexOf(T displayObject) → int

insert(int index, T displayObject) → void

insertAll(int index, Iterable<T> displayObjects) → void

join([String separator = "" ]) → String

Converts each element to a String and concatenates the strings.

lastWhere(bool test(T element), { T orElse() }) → T

Returns the last element that satisfies the given predicate test.

map<S>(S f(T e)) → Iterable<S>

Returns a new lazy Iterable with elements that are created by calling f on each element of this Iterable in iteration order.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
reduce(T combine(T value, T element)) → T

Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.

remove(T displayObject) → bool

removeAt(int index) → T

removeLast() → T

removeRange(int start, int end) → void

singleWhere(bool test(T element)) → T

Returns the single element that satisfies test.

skip(int count) → Iterable<T>

Returns an Iterable that provides all but the first count elements.

skipWhile(bool test(T value)) → Iterable<T>

Returns an Iterable that skips leading elements while test is satisfied.

take(int count) → Iterable<T>

Returns a lazy iterable of the count first elements of this iterable.

takeWhile(bool test(T value)) → Iterable<T>

Returns a lazy iterable of the leading elements satisfying test.

toList({bool growable: true }) → List<T>

Creates a List containing the elements of this Iterable.

toSet() → Set<T>

Creates a Set containing the same elements as this iterable.

toString() → String

Returns a string representation of this object.

inherited
where(bool test(T element)) → Iterable<T>

Returns a new lazy Iterable with all elements that satisfy the predicate test.