fontFamily method

T fontFamily(
  1. String font
)

设置文本的字体系列

参数:

  • font: 字体系列名称

返回: 应用了新字体系列的 TextSpan 对象

Implementation

T fontFamily(String font) => this.copyWith(
      style: (style ?? const TextStyle()).copyWith(
        fontFamily: font,
      ),
    );