withFont method

AnnotationProperties withFont(
  1. String fontName,
  2. double fontSize
)

Creates a modified copy with updated font.

Implementation

AnnotationProperties withFont(String fontName, double fontSize) {
  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: bboxJson,
    note: note,
    inkLinesJson: inkLinesJson,
    fontName: fontName,
    fontSize: fontSize,
    iconName: iconName,
  );
}