AutoText constructor

const AutoText(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign textAlign = TextAlign.start,
  5. int maxLines = 100,
  6. TextOverflow overflow = TextOverflow.ellipsis,
  7. double fontSize = 16,
  8. String fontFamily = "Roboto",
  9. Color? textColor,
})

Creates an AutoText widget.

The text parameter must not be null.

Implementation

const AutoText(this.text,
    {super.key,
    this.style,
    this.textAlign = TextAlign.start,
    this.maxLines = 100,
    this.overflow = TextOverflow.ellipsis,
    this.fontSize = 16,
    this.fontFamily = "Roboto",
    this.textColor});