DiffCommentLineKey.fromAnchor constructor

DiffCommentLineKey.fromAnchor(
  1. DiffCommentAnchor anchor
)

Creates a key from a rendered comment anchor.

Implementation

factory DiffCommentLineKey.fromAnchor(DiffCommentAnchor anchor) {
  return DiffCommentLineKey(
    path: anchor.path,
    line: anchor.line,
    side: anchor.side,
  );
}