TextOneLine constructor
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,
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,
);