hasMore method

bool hasMore([
  1. int? offset
])

Check if there is more items after the specified offset. If no offset it specified, it uses the head offset.

Implementation

bool hasMore([int? offset]) {
  if (offset == null || offset == _offset) {
    return state.hasMore || buffer.isNotEmpty;
  }

  return offset < _offset ||
      offset < (_offset + buffer.length) ||
      state.hasMore;
}