contains method
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;
}