TextView constructor
TextView({
- Key? key,
- required String? text,
- double? width,
- double? height,
- VoidCallback? onClick,
- double? padding,
- double? paddingLeft,
- double? paddingRight,
- double? paddingTop,
- double? paddingBottom,
- String? fontFamily,
- double? fontSize,
- int? maxLine,
- TextOverflow? textOverflow,
- Color? color,
- TextAlign? textAlign,
- FontWeight? fontWeight,
- 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,
});