uppercase method

TextBuilder uppercase()

uppercase: text-transform: uppercase; ✅ 支持:通过字符串转换实现

Implementation

TextBuilder uppercase() {
  // 注意:这会修改原始文本内容
  return TextBuilder(text.toUpperCase())
    .._color = _color
    .._fontSize = _fontSize
    .._fontWeight = _fontWeight
    .._fontStyle = _fontStyle
    .._letterSpacing = _letterSpacing
    .._wordSpacing = _wordSpacing
    .._height = _height
    .._decoration = _decoration
    .._decorationColor = _decorationColor
    .._decorationStyle = _decorationStyle
    .._decorationThickness = _decorationThickness
    .._shadows = _shadows
    .._fontFamily = _fontFamily
    .._textBaseline = _textBaseline
    .._overflow = _overflow
    .._maxLines = _maxLines
    .._textAlign = _textAlign
    .._locale = _locale;
}