endIndex method

int endIndex(
  1. int startIndex
)

Implementation

int endIndex(int startIndex) {
  var si = startIndex + snapCount;
  return si < itemCount ? si : itemCount;
}