isFirstIndex<V> function

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

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

Implementation

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