DiffCommentLineHighlight.selected constructor

DiffCommentLineHighlight.selected(
  1. DiffCommentAnchor anchor
)

Creates a selected-line highlight from anchor.

Implementation

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