isFirstIndex<V> function

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

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

Implementation

bool isFirstIndex<V>(Iterable<V> list, int index) {
  return index == 0;
}