isFirst<V> function

bool isFirst<V>(
  1. Iterable<V> list,
  2. V element
)

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

Implementation

bool isFirst<V>(Iterable<V> list, V element) {
  return firstOrNull<V>(list) == element;
}