IterableElementAtOrElse<E> extension
- on
-
- Iterable<
E>
- Iterable<
Methods
-
elementAtOrElse(
int index, E defaultValue(int index)) → E -
Returns an element at the given
index
or the result of calling thedefaultValue
function if theindex
is out of bounds of this collection.