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