exportToPdfWidget method
Exports the ExportFrame with the given frameId
to a pw.Widget
.
Implementation
Future<pw.Widget> exportToPdfWidget(String frameId,
{ExportOptions? overrideOptions}) async {
final ExportFrame frame = getFrame(frameId);
if (overrideOptions != null) {
ExportDelegate delegate = copyWith(options: overrideOptions);
return await delegate._exportWidget(
frame.exportWidget, frame.exportContext!);
}
return await _exportWidget(frame.exportWidget, frame.exportContext!);
}