appendText method
RichTextUtil
appendText(
- String text, {
- Color color = const Color(0xff222222),
- double size = 14,
- bool bold = false,
- double? height,
- TextDecoration? decoration,
- VoidCallback? onTap,
Implementation
RichTextUtil appendText(String text, {Color color = const Color(0xff222222),
double size = 14, bool bold = false, double? height, TextDecoration? decoration,
VoidCallback? onTap}) {
var span = TextSpan(text: text, style: TextStyle(color: color, decoration: decoration,
fontSize: size, height: height, fontWeight: bold ? FontWeight.w600 : FontWeight.normal),
recognizer: TapGestureRecognizer()..onTap = onTap);
spans.add(span);
return this;
}