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,
})

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