toPdfWidget method

Widget toPdfWidget(
  1. Widget? child
)

Converts the ConstrainedBox to a pw.ConstrainedBox.

Implementation

pw.Widget toPdfWidget(pw.Widget? child) => pw.ConstrainedBox(
      constraints: constraints.toPdfBoxConstraints(),
      child: child,
    );