Text constructor
Text(
- String text, {
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- bool? softWrap,
- bool tightBounds = false,
- double textScaleFactor = 1.0,
- int? maxLines,
- TextOverflow? overflow,
- Hyphenation? hyphenation,
- LineSplitter? lineSplitter,
Implementation
Text(
String text, {
TextStyle? style,
TextAlign? textAlign,
TextDirection? textDirection,
bool? softWrap,
bool tightBounds = false,
double textScaleFactor = 1.0,
int? maxLines,
TextOverflow? overflow,
Hyphenation? hyphenation,
LineSplitter? lineSplitter,
}) : super(
text: TextSpan(text: text, style: style),
textAlign: textAlign,
softWrap: softWrap,
tightBounds: tightBounds,
textDirection: textDirection,
textScaleFactor: textScaleFactor,
maxLines: maxLines,
overflow: overflow,
hyphenation: hyphenation,
lineSplitter: lineSplitter,
);