bold method
T
bold()
将文本设置为粗体
返回: 应用了粗体样式的 TextSpan 对象
Implementation
T bold() => this.copyWith(
style: (style ?? const TextStyle()).copyWith(
fontWeight: FontWeight.bold,
),
);
将文本设置为粗体
返回: 应用了粗体样式的 TextSpan 对象
T bold() => this.copyWith(
style: (style ?? const TextStyle()).copyWith(
fontWeight: FontWeight.bold,
),
);