CText constructor

const CText({
  1. Key? key,
  2. required String data,
  3. bool enable = true,
  4. bool isRequired = false,
  5. TextStyle? style,
  6. TextStyle? disableStyle,
  7. StrutStyle? strutStyle,
  8. TextAlign? textAlign,
  9. TextDirection? textDirection,
  10. Locale? locale,
  11. bool? softWrap,
  12. TextOverflow? overflow,
  13. double? textScaleFactor,
  14. int? maxLines,
  15. String? semanticsLabel,
  16. TextWidthBasis? textWidthBasis,
  17. TextHeightBehavior? textHeightBehavior,
})

Implementation

const CText({
  Key? key,
  required this.data,
  this.enable = true,
  this.isRequired = false,
  this.style,
  this.disableStyle,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
}) : super(key: key);