toPdfWidget method
ClipRRect
toPdfWidget(
- Widget? child
Converts the ClipRRect to a pw.ClipRRect
.
Implementation
pw.ClipRRect toPdfWidget(pw.Widget? child) => pw.ClipRRect(
horizontalRadius:
(borderRadius as BorderRadius?)?.toPdfHorizontalRadius() ?? 0,
verticalRadius:
(borderRadius as BorderRadius?)?.toPdfVerticalRadius() ?? 0,
child: child,
);