TextWidget constructor

const TextWidget(
  1. String text, {
  2. Key? key,
  3. TextAlign? textAlign,
  4. int? maxLines,
  5. TextOverflow? overflow,
  6. TextTypeConstants? textType = TextTypeConstants.normal,
  7. TextScaler? textScaler,
  8. Color? color,
  9. TextOptions? textOptions,
  10. FontWeight? fontWeight,
})

Implementation

const TextWidget(
  this.text, {
  super.key,
  this.textAlign,
  this.maxLines,
  this.overflow,
  this.textType = TextTypeConstants.normal,
  this.textScaler,
  this.color,
  this.textOptions,
  this.fontWeight,
});