TextSpan appendString(String? text) { if (text == null) return this; return TextSpan(children: [this, TextSpan(text: text, style: style)]); }