toPdfTextDecoration method
TextDecoration
toPdfTextDecoration()
Implementation
pw.TextDecoration toPdfTextDecoration() {
pw.TextDecoration textDecoration = pw.TextDecoration.none;
if (contains(TextDecoration.underline)) {
textDecoration.merge(pw.TextDecoration.underline);
}
if (contains(TextDecoration.overline)) {
textDecoration.merge(pw.TextDecoration.overline);
}
if (contains(TextDecoration.lineThrough)) {
textDecoration.merge(pw.TextDecoration.lineThrough);
}
return textDecoration;
}