TextWidget constructor
TextWidget({
- required String data,
- FontWeight fontWeight = FontWeight.normal,
- double fontSize = 12,
- TextAlign textAlign = TextAlign.start,
- double? height,
- double? textScaleFactor,
- Color? color,
- TextOverflow textoverflow = TextOverflow.clip,
- bool isMandatory = false,
- bool? trimLongText,
- bool isUnderline = false,
- int? maxLines,
- 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,
});