FreeTextAnnotation constructor
FreeTextAnnotation({
- String? id,
- required List<
double> bbox, - String? createdAt,
- String? creatorName,
- required TextContent text,
- required double fontSize,
- Color? backgroundColor,
- String font = 'sans-serif',
- HorizontalTextAlignment? horizontalTextAlign,
- VerticalAlignment? verticalAlign,
- Color fontColor = Colors.black,
- bool? isFitting,
- bool? disableAutoReturn,
- Map<
String, dynamic> ? callout, - BorderStyle? borderStyle,
- List<
double> ? borderDashArray, - double? borderWidth,
- int rotation = 0,
- double? cloudyBorderIntensity,
- List<
double> ? cloudyBorderInset, - required int pageIndex,
- double opacity = 1.0,
- int? pdfObjectId,
- List<
AnnotationFlag> ? flags, - String? updatedAt,
- String? name,
- String? subject,
- 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);