nearestCommentAnchor method

DiffCommentAnchor? nearestCommentAnchor(
  1. int renderLine
)

Returns the nearest comment anchor at or after renderLine.

Implementation

DiffCommentAnchor? nearestCommentAnchor(int renderLine) {
  if (commentAnchors.isEmpty) return null;
  final index = nearestCommentAnchorIndex(renderLine);
  return commentAnchors[index];
}