CustomText constructor
const
CustomText({
- Key? key,
- required String text,
- double? fontSize,
- TextAlign? textAlign,
- Color? backgroundColor,
- Color? color,
- FontWeight? fontWeight = FontWeight.w400,
- int? maxLines,
- TextDecoration? textDecoration,
- TextOverflow? overflow,
- FontStyle? fontStyle,
- TextStyle? style,
- double? height,
- String? fontFamily,
- double? wordSpaces,
- TextDirection? textDirection,
Implementation
const CustomText({
super.key,
required this.text,
this.fontSize,
this.textAlign,
this.backgroundColor,
this.color,
this.fontWeight = FontWeight.w400,
this.maxLines,
this.textDecoration,
this.overflow,
this.fontStyle,
this.style,
this.height,
this.fontFamily,
this.wordSpaces,
this.textDirection,
});