inSelection method

bool inSelection(
  1. Selection? selection
)

Implementation

bool inSelection(Selection? selection) {
  return selection != null &&
      selection.start.path <= this &&
      this <= selection.end.path;
}