TextView constructor

TextView({
  1. Key? key,
  2. required String? text,
  3. double? width,
  4. double? height,
  5. VoidCallback? onClick,
  6. double? padding,
  7. double? paddingLeft,
  8. double? paddingRight,
  9. double? paddingTop,
  10. double? paddingBottom,
  11. String? fontFamily,
  12. double? fontSize,
  13. int? maxLine,
  14. TextOverflow? textOverflow,
  15. Color? color,
  16. TextAlign? textAlign,
  17. FontWeight? fontWeight,
  18. TextDecoration? decoration,
})

Implementation

TextView({
  super.key,
  required this.text,
  this.width,
  this.height,
  this.onClick,
  this.padding,
  this.paddingLeft,
  this.paddingRight,
  this.paddingTop,
  this.paddingBottom,
  this.fontFamily,
  this.fontSize,
  this.maxLine,
  this.textOverflow,
  this.color,
  this.textAlign,
  this.fontWeight,
  this.decoration,
});