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

Creates a Text.

Implementation

Text(
  this.text, {
  this.style,
  this.textAlign,
  this.textDirection,
  this.softWrap,
  this.tightBounds = false,
  this.textScaleFactor = 1.0,
  this.maxLines,
  this.overflow,
});