printText method
在当前行渲染文本内容
Implementation
@override
Future<void> printText(String text, TextStyle style) async {
_methodChannel.invokeMethod(Constants.METHOD_LINE_PRINT_TEXT, {
ParamConstants.TEXT: text,
ParamConstants.STYLE: jsonEncode(style.toJson())
});
}