Text constructor

Text(
  1. String text, {
  2. TextStyle? style,
  3. TextAlign? textAlign,
  4. TextDirection? textDirection,
  5. bool? softWrap,
  6. bool tightBounds = false,
  7. double textScaleFactor = 1.0,
  8. int? maxLines,
  9. TextOverflow? overflow = null,
})

Implementation

Text(
  String text, {
  TextStyle? style,
  super.textAlign,
  super.textDirection,
  super.softWrap,
  super.tightBounds,
  super.textScaleFactor,
  super.maxLines,
  super.overflow = null,
}) : super(
        text: TextSpan(text: text, style: style),
      );