TextView constructor

const TextView({
  1. required String title,
  2. TextStyle checkedTextStyle = const TextStyle(color: Colors.white, fontSize: 20),
  3. TextStyle unCheckTextStyle = const TextStyle(color: Colors.black38, fontSize: 20),
  4. Color highlightColor = Colors.transparent,
  5. Color hoverColor = Colors.transparent,
  6. double drawPadding = 5.0,
  7. PositionEnum drawablePosition = PositionEnum.drawableRight,
  8. Widget? drawableWidget,
  9. Widget? drawablePressWidget,
  10. bool enableClick = true,
  11. bool isChecked = true,
  12. dynamic callBack(
    1. bool checked
    )?,
  13. StrutStyle? strutStyle,
  14. TextAlign? textAlign,
  15. TextDirection? textDirection,
  16. Locale? locale,
  17. bool? softWrap,
  18. TextOverflow? overflow,
  19. double? textScaleFactor,
  20. int? maxLines,
  21. String? semanticsLabel,
  22. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  23. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  24. MainAxisSize mainAxisSize = MainAxisSize.min,
  25. Key? key,
})

Implementation

const TextView({
  required this.title,
  this.checkedTextStyle = const TextStyle(color: Colors.white, fontSize: 20),
  this.unCheckTextStyle =
      const TextStyle(color: Colors.black38, fontSize: 20),
  this.highlightColor = Colors.transparent,
  this.hoverColor = Colors.transparent,
  this.drawPadding = 5.0,
  this.drawablePosition = PositionEnum.drawableRight,
  this.drawableWidget,
  this.drawablePressWidget,
  this.enableClick = true,
  this.isChecked = true,
  this.callBack,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.mainAxisSize = MainAxisSize.min,
  Key? key,
}) : super(key: key);