toPdfWidget method
Converts the Text to a pw.Text
.
Implementation
Future<pw.Text> toPdfWidget(ExportInstance instance) async => pw.Text(
data!,
maxLines: maxLines,
textAlign: textAlign?.toPdfTextAlign(),
textDirection: textDirection?.toPdfTextDirection(),
softWrap: softWrap,
overflow: overflow?.toPdfTextOverflow(),
// ignore: deprecated_member_use
textScaleFactor: textScaleFactor ?? 1.0,
style: await style?.toPdfTextStyle(instance.delegate.fontData),
);