nearestCommentAnchor method
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];
}