IterableElementAtOrDefault<E> extension

on

Methods

elementAtOrDefault(int index, E defaultValue) → E

Available on Iterable<E>, provided by the IterableElementAtOrDefault extension

Returns an element at the given index or defaultValue if the index is out of bounds of this collection.