printText static method

Future<void> printText(
  1. String content, {
  2. int size = 18,
  3. bool isBold = false,
  4. bool isUnderline = false,
})

Print the text. content is mandatory size Font size of the text to printed. isBold Boolean to set whether text needs to printed in bold. isUnderline Boolean to set whether text needs to be underlined.

Implementation

static Future<void> printText(String content,
    {int size = 18, bool isBold = false, bool isUnderline: false}) async {
  await _channel.invokeMethod("printText", <String, dynamic>{
    'content': content,
    'size': size,
    'isBold': isBold,
    'isUnderline': isUnderline,
  });
}