wordSpacing method

T wordSpacing(
  1. double space
)

设置文本的单词间距

参数:

  • space: 单词间距

返回: 应用了新单词间距的 TextSpan 对象

Implementation

T wordSpacing(double space) => this.copyWith(
      style: (style ?? const TextStyle()).copyWith(
        wordSpacing: space,
      ),
    );