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. @Deprecated('Use textScaler instead. ' 'Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support. ' 'This feature was deprecated after v3.12.0-2.0.pre.') double? textScaleFactor,
  10. TextScaler? textScaler,
  11. String? semanticsLabel,
  12. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  13. TextHeightBehavior? textHeightBehavior,
})

Implementation

const TextOneLine(
  String data, {
  Key? key,
  TextStyle? style,
  StrutStyle? strutStyle,
  TextAlign? textAlign,
  TextDirection? textDirection,
  Locale? locale,
  TextOverflow? overflow = TextOverflow.ellipsis,
  //
  @Deprecated(
    'Use textScaler instead. '
    'Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support. '
    'This feature was deprecated after v3.12.0-2.0.pre.',
  )
  double? textScaleFactor,
  //
  TextScaler? textScaler,
  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,
        //
        // ignore: deprecated_member_use
        textScaleFactor: textScaleFactor,
        //
        textScaler: textScaler,
        maxLines: 1,
        semanticsLabel: semanticsLabel,
        textWidthBasis: textWidthBasis,
        textHeightBehavior: textHeightBehavior,
      );