CustomText constructor

const CustomText({
  1. Key? key,
  2. required String text,
  3. Color? textColour,
  4. double? textSize,
  5. TextAlign? textAlign,
  6. FontWeight? fontWeight,
  7. double? lineHeight,
  8. String? textFontFamily = "NunitoSansRegular",
})

Implementation

const CustomText({
  Key? key,
  required this.text,
  this.textColour,
  this.textSize,
  this.textAlign,
  this.fontWeight,
  this.lineHeight,
  this.textFontFamily = "NunitoSansRegular",
}) : super(key: key);