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