DiffCommentAnchor constructor

const DiffCommentAnchor({
  1. required String path,
  2. required int line,
  3. required DiffCommentSide side,
  4. required DiffCommentKind kind,
  5. required int renderLine,
  6. required String content,
  7. int? renderLineEnd,
})

Creates a diff comment anchor.

Implementation

const DiffCommentAnchor({
  required this.path,
  required this.line,
  required this.side,
  required this.kind,
  required this.renderLine,
  required this.content,
  int? renderLineEnd,
}) : renderLineEnd = renderLineEnd ?? renderLine + 1;