MadroidText constructor

const MadroidText({
  1. Key? key,
  2. required String text,
  3. bool visible = true,
  4. double margin = 0.0,
  5. double? marginTop,
  6. double? marginLeft,
  7. double? marginRight,
  8. double? marginBottom,
  9. double? marginVertical,
  10. double? marginHorizontal,
  11. Color color = kWhiteColor,
  12. double? size,
  13. String? font,
  14. FontWeight weight = FontWeight.normal,
  15. TextOverflow? overflow,
  16. TextAlign align = TextAlign.justify,
  17. double? letterSpacing,
  18. double? wordSpacing,
  19. VoidCallback? onTap,
  20. VoidCallback? onLongPress,
  21. VoidCallback? onDoubleTap,
})

Implementation

const MadroidText({
  super.key,
  required this.text,
  this.visible = true,
  this.margin = 0.0,
  this.marginTop,
  this.marginLeft,
  this.marginRight,
  this.marginBottom,
  this.marginVertical,
  this.marginHorizontal,
  this.color = kWhiteColor,
  this.size,
  this.font,
  this.weight = FontWeight.normal,
  this.overflow,
  this.align = TextAlign.justify,
  this.letterSpacing,
  this.wordSpacing,
  this.onTap,
  this.onLongPress,
  this.onDoubleTap,
});