contains method

bool contains(
  1. int blockIndex,
  2. int offset
)

Implementation

bool contains(int blockIndex, int offset) {
  for (final UEpubSlice slice in slices) {
    if (slice.blockIndex != blockIndex) continue;
    if (offset >= slice.start && (slice.end < 0 || offset < slice.end)) return true;
  }
  return false;
}