Creates a selection, optionally with an initial selection range from start to end.
start
end
ItemSelection([int? start, int? end]) { if (start != null) { _tree.add([start, end ?? start]); } }