TextOneLine constructor

const TextOneLine(
  1. String data,
  2. {Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. TextOverflow? overflow = TextOverflow.ellipsis,
  9. double? textScaleFactor,
  10. String? semanticsLabel,
  11. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  12. TextHeightBehavior? textHeightBehavior}
)

Implementation

const TextOneLine(
  String data, {
  Key? key,
  TextStyle? style,
  StrutStyle? strutStyle,
  TextAlign? textAlign,
  TextDirection? textDirection,
  Locale? locale,
  TextOverflow? overflow = TextOverflow.ellipsis,
  double? textScaleFactor,
  String? semanticsLabel,
  TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  TextHeightBehavior? textHeightBehavior,
}) : super(
        data,
        key: key,
        style: style,
        strutStyle: strutStyle,
        textAlign: textAlign,
        textDirection: textDirection,
        locale: locale,
        softWrap: false,
        overflow: overflow,
        textScaleFactor: textScaleFactor,
        maxLines: 1,
        semanticsLabel: semanticsLabel,
        textWidthBasis: textWidthBasis,
        textHeightBehavior: textHeightBehavior,
      );