PolyLineAnnotation constructor

PolyLineAnnotation({
  1. required List<PdfPoint> points,
  2. PdfColor? color,
  3. PdfBorder? border,
  4. String? author,
  5. DateTime? date,
  6. String? content,
  7. String? subject,
})

Implementation

PolyLineAnnotation({
  required List<PdfPoint> points,
  PdfColor? color,
  PdfBorder? border,
  String? author,
  DateTime? date,
  String? content,
  String? subject,
}) : super(
        child: Polygon(
            points: points,
            strokeColor: color,
            close: false,
            strokeWidth: border?.width ?? 1.0),
        builder: AnnotationPolygon(
          points,
          color: color,
          border: border,
          author: author,
          date: date,
          content: content,
          subject: subject,
        ),
      );