CustomText constructor

const CustomText({
  1. Key? key,
  2. required String text,
  3. Color? color = blackColor,
  4. bool softWrap = false,
  5. int? maxLines,
  6. FontWeight? fontWeight = fontWeigh400,
  7. double? fontSize = size16,
  8. TextAlign? textAlign = TextAlign.center,
  9. TextDecoration? decoration,
  10. 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);