toPdfWidget method

Align toPdfWidget(
  1. Widget? child
)

Converts the Align to a pw.Align.

Implementation

pw.Align toPdfWidget(pw.Widget? child) => pw.Align(
      alignment: alignment.toPdfAlignment() ?? pw.Alignment.center,
      widthFactor: widthFactor,
      heightFactor: heightFactor,
      child: child,
    );