textWithFont static method

dynamic textWithFont(
  1. String text, {
  2. String? typeface,
  3. double? fontsize,
})

打印文本(包含字体大小)

Implementation

static textWithFont(String text, {String? typeface, double? fontsize}) async {
  await _channel.invokeMethod('textWithFont', {
    'text': text,
    'typeface': typeface,
    'size': fontsize,
  });
}