toPdfWidget method
Positioned
toPdfWidget(
- Widget child
Converts the Positioned to a pw.Positioned
.
Implementation
pw.Positioned toPdfWidget(pw.Widget child) {
if (width != null || height != null) {
child = pw.SizedBox(
width: width,
height: height,
child: child,
);
}
return pw.Positioned(
left: left,
top: top,
right: right,
bottom: bottom,
child: child,
);
}