toPdfTextDecorationStyle method
TextDecorationStyle
toPdfTextDecorationStyle()
Implementation
pw.TextDecorationStyle toPdfTextDecorationStyle() {
switch (this) {
case TextDecorationStyle.solid:
return pw.TextDecorationStyle.solid;
case TextDecorationStyle.double:
return pw.TextDecorationStyle.double;
// not supported by pdf package:
// - TextDecorationStyle.dotted
// - TextDecorationStyle.dashed
// - TextDecorationStyle.wavy
default:
debugPrint(
'Unsupported TextDecorationStyle: $this; defaulting to TextDecorationStyle.solid');
return pw.TextDecorationStyle.solid;
}
}