commentTarget property

DiffReviewRange? get commentTarget

A submit-ready source target, or null if selection crosses omitted context.

Implementation

DiffReviewRange? get commentTarget {
  final range = selection;
  return range != null && document.covers(range) ? range : null;
}