withRawInkLines method

AnnotationProperties withRawInkLines(
  1. List<List<List<double>>> inkLines
)

Creates a modified copy with updated raw ink lines. Accepts ink lines in the native format: [[x, y, pressure, ...], ...]

Implementation

AnnotationProperties withRawInkLines(List<List<List<double>>> inkLines) {
  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: _encodeInkLines(inkLines),
    fontName: fontName,
    fontSize: fontSize,
    iconName: iconName,
  );
}