CustomText constructor

const CustomText({
  1. Key? key,
  2. required String txt,
  3. String variant = 'text',
  4. String? font_size = 'lg',
  5. String? text_color,
  6. TextDecoration text_decoration = TextDecoration.none,
  7. TextAlign alignment = TextAlign.center,
})

Implementation

const CustomText({
    super.key,
    required this.txt,
    this.variant = 'text',
    this.font_size = 'lg',
    this.text_color,
    this.text_decoration = TextDecoration.none,
    this.alignment = TextAlign.center,
});