printText method
Prints a text string using the provided config and style.
The text is the content to be printed.
The style defines the text style for printing.
Implementation
Future<void> printText(
String text,
PrintConfig config, {
TextStyle style = presetTextStyle,
}) async => print(
await imageFromText(text, style: style, labelSize: config.labelSize),
config,
);