fontWeight method
设置文本的字体粗细
参数:
- fontWeight: 字体粗细
返回: 应用了新字体粗细的 TextSpan 对象
Implementation
T fontWeight(FontWeight fontWeight) => this.copyWith(
style: (style ?? const TextStyle()).copyWith(
fontWeight: fontWeight,
),
);
设置文本的字体粗细
参数:
返回: 应用了新字体粗细的 TextSpan 对象
T fontWeight(FontWeight fontWeight) => this.copyWith(
style: (style ?? const TextStyle()).copyWith(
fontWeight: fontWeight,
),
);