FreeTextAnnotation constructor

FreeTextAnnotation({
  1. String? id,
  2. required List<double> bbox,
  3. String? createdAt,
  4. String? creatorName,
  5. required TextContent text,
  6. required double fontSize,
  7. Color? backgroundColor,
  8. String font = 'sans-serif',
  9. HorizontalTextAlignment? horizontalTextAlign,
  10. VerticalAlignment? verticalAlign,
  11. Color fontColor = Colors.black,
  12. bool? isFitting,
  13. bool? disableAutoReturn,
  14. Map<String, dynamic>? callout,
  15. BorderStyle? borderStyle,
  16. List<double>? borderDashArray,
  17. double? borderWidth,
  18. int rotation = 0,
  19. double? cloudyBorderIntensity,
  20. List<double>? cloudyBorderInset,
  21. required int pageIndex,
  22. double opacity = 1.0,
  23. int? pdfObjectId,
  24. List<AnnotationFlag>? flags,
  25. String? updatedAt,
  26. String? name,
  27. String? subject,
  28. bool hidden = false,
  29. Map<String, dynamic>? customData,
})

Implementation

FreeTextAnnotation({
  super.id,
  required super.bbox,
  super.createdAt,
  super.creatorName,
  required this.text,
  required this.fontSize,
  this.backgroundColor,
  this.font = 'sans-serif',
  this.horizontalTextAlign,
  this.verticalAlign,
  this.fontColor = Colors.black,
  this.isFitting,
  this.disableAutoReturn,
  this.callout,
  this.borderStyle,
  this.borderDashArray,
  this.borderWidth,
  this.rotation = 0,
  this.cloudyBorderIntensity,
  this.cloudyBorderInset,
  required super.pageIndex,
  super.opacity,
  super.pdfObjectId,
  super.flags,
  super.updatedAt,
  super.name,
  super.subject,
  super.hidden,
  super.customData,
}) : super(type: AnnotationType.freeText);