withFlags method
Creates a modified copy with updated flags.
Implementation
AnnotationProperties withFlags(Set<AnnotationFlag> flags) {
return AnnotationProperties(
annotationId: annotationId,
pageIndex: pageIndex,
strokeColor: strokeColor,
fillColor: fillColor,
opacity: opacity,
lineWidth: lineWidth,
flagsJson: _encodeFlags(flags.map((f) => f.name).toList()),
customDataJson: customDataJson,
contents: contents,
subject: subject,
creator: creator,
bboxJson: bboxJson,
note: note,
inkLinesJson: inkLinesJson,
fontName: fontName,
fontSize: fontSize,
iconName: iconName,
);
}