hasReachedEnd method

bool hasReachedEnd(
  1. List<T> list
)

Should return whether the end of the list has been reached.

Implementation

bool hasReachedEnd(List<T> list) => list.isEmpty;