DiffCommentLineHighlight.range constructor

DiffCommentLineHighlight.range(
  1. DiffCommentAnchor anchor
)

Creates a selected-range highlight from anchor.

Implementation

factory DiffCommentLineHighlight.range(DiffCommentAnchor anchor) {
  return DiffCommentLineHighlight(
    key: anchor.key,
    kind: DiffCommentLineHighlightKind.range,
  );
}