printText method

Future<void> printText(
  1. String text,
  2. PrintConfig config, {
  3. TextStyle style = presetTextStyle,
})

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,
);