hasElementAt method
Does this source contain an element at the given position?
Implementation
bool hasElementAt(int index) {
if (index < 0) {
return false;
}
final totalCount = this.totalCount;
if (totalCount != null) {
return index < totalCount;
}
final nextCursor = this.nextCursor;
if (nextCursor != null) {
return index < nextCursor + _pageLength;
}
return false;
}