IterableElementAtOrElse<E> extension

on

Methods

elementAtOrElse(int index, E defaultValue(int index)) → E
Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this collection.