TextWidget constructor

TextWidget({
  1. required String data,
  2. FontWeight fontWeight = FontWeight.normal,
  3. double fontSize = 12,
  4. TextAlign textAlign = TextAlign.start,
  5. double? height,
  6. double? textScaleFactor,
  7. Color? color,
  8. TextOverflow textoverflow = TextOverflow.clip,
  9. bool isMandatory = false,
  10. bool? trimLongText,
  11. bool isUnderline = false,
  12. int? maxLines,
  13. TextStyle? textStyle,
})

Implementation

TextWidget({
  required this.data,
  this.fontWeight = FontWeight.normal,
  this.fontSize = 12,
  this.textAlign = TextAlign.start,
  this.height,
  this.textScaleFactor,
  this.color,
  this.textoverflow = TextOverflow.clip,
  this.isMandatory= false,
  this.trimLongText,
  this.isUnderline = false,
  this.maxLines,
  this.textStyle,
});