TextView constructor

const TextView({
  1. Key? key,
  2. required String text,
  3. dynamic color,
  4. TextStyle? style,
  5. int? maxlines,
  6. TextAlign? textAlign,
  7. bool? underline,
  8. dynamic textSize,
  9. String? fontFamily,
  10. FontWeight? fontWeight,
  11. double? lineHeight,
  12. FontStyle? fontStyle,
  13. dynamic underlineColor,
  14. bool? strikeThrough,
  15. bool? capitalise,
  16. double? letterSpacing,
  17. TextOverflow? overflow,
  18. EdgeInsets? margin,
  19. dynamic onTap()?,
  20. bool visible = true,
})

Implementation

const TextView( {super.key, required this.text,
  this.color,
  this.style,
  this.maxlines,

  this.textAlign,
  this.underline,
  this.textSize,
  this.fontFamily,
  this.fontWeight,
  this.lineHeight,
  this.fontStyle,
  this.underlineColor, this.strikeThrough,
  this.capitalise,
  this.letterSpacing,
  this.overflow, this.margin, this.onTap,this.visible = true
});