renderText method
在画布上绘制文本内容.
Implementation
@override
Future<void> renderText(String text, TextStyle style) async {
_methodChannel.invokeMethod(Constants.METHOD_CANVAS_RENDER_TEXT, {
ParamConstants.TEXT: text,
ParamConstants.STYLE: jsonEncode(style.toJson())
});
}