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