build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Widget

Implementation

@override
Widget build(BuildContext context) {
  if (isAutoSize) {
    return AutoSizeText(
      text,
      softWrap: softWrap,
      style: TextStyle(
        color: textColor,
        fontFamily: fontFamily,
        fontSize: fontSize,
        fontWeight: fontWeight,
        height: lineHeight,
        decoration: decoration,
        decorationColor: decorationColor,
        decorationThickness: decorationThickness,
        shadows: shadows,
      ),
      textAlign: textAlign,
      maxLines: maxLines,
      overflow: overflow,
    );
  }
  return Text(
    text,
    softWrap: softWrap,
    style: TextStyle(
      color: textColor,
      fontFamily: fontFamily,
      fontSize: fontSize,
      fontWeight: fontWeight,
      height: lineHeight,
      decoration: decoration,
      decorationColor: decorationColor,
      decorationThickness: decorationThickness,
      shadows: shadows,
    ),
    textAlign: textAlign,
    maxLines: maxLines,
    overflow: overflow,
  );
}