toPdfInputBorder method
BoxDecoration
toPdfInputBorder()
Converts the InputBorder to a pw.BoxDecoration
.
Implementation
pw.BoxDecoration toPdfInputBorder() {
switch (runtimeType) {
case OutlineInputBorder:
return (this as OutlineInputBorder).toPdfOutlineInputBorder();
case UnderlineInputBorder:
return (this as UnderlineInputBorder).toPdfUnderlineInputBorder();
default:
debugPrint(
'Unsupported InputBorder: $this; defaulting to empty BoxDecoration');
return const pw.BoxDecoration();
}
}