ByteSelection.single constructor
ByteSelection.single(
- int offset
Creates a selection of a single byte at the given offset.
This is equivalent to ByteSelection(startOffset: offset, endOffset: offset).
Example:
final sel = ByteSelection.single(42);
print(sel.length); // 1
print(sel.contains(42)); // true
Implementation
factory ByteSelection.single(int offset) {
return ByteSelection(startOffset: offset, endOffset: offset);
}