UPdfAnnotationSpec constructor
const
UPdfAnnotationSpec({
- required UPdfAnnotationStyle style,
- required Rect rect,
- List<
Rect> quads = const <Rect>[], - List<
List< inkPaths = const <List<Offset>>[],Offset> > - Color color = const Color(0xFFFFEB3B),
- Color? borderColor,
- double opacity = 1,
- double borderWidth = 2,
- String contents = "",
- String author = "",
- String title = "",
- double fontSize = 12,
- Color textColor = const Color(0xFF000000),
- Uint8List? imageBytes,
- bool rtl = false,
Implementation
const UPdfAnnotationSpec({
required this.style,
required this.rect,
this.quads = const <Rect>[],
this.inkPaths = const <List<Offset>>[],
this.color = const Color(0xFFFFEB3B),
this.borderColor,
this.opacity = 1,
this.borderWidth = 2,
this.contents = "",
this.author = "",
this.title = "",
this.fontSize = 12,
this.textColor = const Color(0xFF000000),
this.imageBytes,
this.rtl = false,
});