printText static method
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,
});
}