withBoundingBox method

AnnotationProperties withBoundingBox(
  1. Rect bbox
)

Creates a modified copy with updated bounding box.

Implementation

AnnotationProperties withBoundingBox(Rect bbox) {
  return AnnotationProperties(
    annotationId: annotationId,
    pageIndex: pageIndex,
    strokeColor: strokeColor,
    fillColor: fillColor,
    opacity: opacity,
    lineWidth: lineWidth,
    flagsJson: flagsJson,
    customDataJson: customDataJson,
    contents: contents,
    subject: subject,
    creator: creator,
    bboxJson: _encodeBbox([bbox.left, bbox.top, bbox.width, bbox.height]),
    note: note,
    inkLinesJson: inkLinesJson,
    fontName: fontName,
    fontSize: fontSize,
    iconName: iconName,
  );
}