build method
最终构建方法 - 一次性创建Text
Implementation
Text build() {
return Text(
text,
style: TextStyle(
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,
),
textAlign: _textAlign,
overflow: _overflow,
maxLines: _maxLines,
locale: _locale,
);
}