findSelectedNodes method

List<GreenNode> findSelectedNodes(
  1. int position1,
  2. int position2
)

Implementation

List<GreenNode> findSelectedNodes(int position1, int position2) {
  final rowNode = findLowestCommonRowNode(position1, position2);

  final localPos1 = position1 - rowNode.pos;
  final localPos2 = position2 - rowNode.pos;
  return rowNode.clipChildrenBetween(localPos1, localPos2).children;
}