CustomText constructor
const
CustomText({
- Key? key,
- required String text,
- Color? color = blackColor,
- bool softWrap = false,
- int? maxLines,
- FontWeight? fontWeight = fontWeigh400,
- double? fontSize = size16,
- TextAlign? textAlign = TextAlign.center,
- TextDecoration? decoration,
- EdgeInsetsGeometry? padding,
Implementation
const CustomText({
Key? key,
required this.text,
this.color = blackColor,
this.softWrap = false,
this.maxLines,
this.fontWeight = fontWeigh400,
this.fontSize = size16,
this.textAlign = TextAlign.center,
this.decoration,
this.padding,
}) : super(key: key);