withIcon method

AnnotationProperties withIcon(
  1. NoteIcon iconName
)

Creates a modified copy with updated icon.

Implementation

AnnotationProperties withIcon(NoteIcon iconName) {
  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.instantJsonName,
  );
}