ItemSelection constructor

ItemSelection([
  1. int? start,
  2. int? end
])

Creates a selection, optionally with an initial selection range from start to end.

Implementation

ItemSelection([int? start, int? end]) {
  if (start != null) {
    _tree.add([start, end ?? start]);
  }
}