toPdfWidget method

Widget toPdfWidget(
  1. Widget? child
)

Converts the FittedBox to a pw.FittedBox.

Implementation

pw.Widget toPdfWidget(pw.Widget? child) => pw.FittedBox(
      fit: fit.toPdfBoxFit(),
      alignment: (alignment as Alignment).toPdfAlignment(),
      child: child,
    );