isLastIndex<V> function

bool isLastIndex<V>(
  1. Iterable<V> list,
  2. int index
)

Returns a true value if index is the last in the list.

Implementation

bool isLastIndex<V>(Iterable<V> list, int index) {
  return list.length - 1 == index;
}