toPdfWidget method

Widget toPdfWidget(
  1. Widget? child
)

Converts the LimitedBox to a pw.LimitedBox.

Implementation

pw.Widget toPdfWidget(pw.Widget? child) => pw.LimitedBox(
      maxWidth: maxWidth,
      maxHeight: maxHeight,
      child: child,
    );