SquareAnnotation constructor

SquareAnnotation(
  1. {Widget? child,
  2. PdfColor? color,
  3. PdfColor? interiorColor,
  4. PdfBorder? border,
  5. String? author,
  6. DateTime? date,
  7. String? subject,
  8. String? content}
)

Implementation

SquareAnnotation({
  Widget? child,
  PdfColor? color,
  PdfColor? interiorColor,
  PdfBorder? border,
  String? author,
  DateTime? date,
  String? subject,
  String? content,
}) : super(
        child: child ??
            Rectangle(
                fillColor: interiorColor,
                strokeWidth: border?.width ?? 1.0,
                strokeColor: color),
        builder: AnnotationSquare(
          color: color,
          interiorColor: interiorColor,
          border: border,
          author: author,
          date: date,
          content: content,
          subject: subject,
        ),
      );