withLineWidth method

AnnotationProperties withLineWidth(
  1. double lineWidth
)

Creates a modified copy with updated line width.

Implementation

AnnotationProperties withLineWidth(double lineWidth) {
  assert(lineWidth > 0, 'Line width must be positive');
  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,
  );
}