KText constructor

const KText(
  1. String data, {
  2. Key? key,
  3. TextStyle? style,
  4. double? fontSize,
  5. FontWeight fontWeight = FontWeight.normal,
  6. Color? color,
  7. TextAlign? textAlign,
  8. TextOverflow? overflow,
  9. bool? softWrap,
  10. int? maxLines,
  11. double? height,
  12. double? letterSpacing,
  13. bool wrapWithTooltip = false,
  14. String? fontFamily,
})

Implementation

const KText(
  this.data, {
  super.key,
  this.style,
  this.fontSize,
  this.fontWeight = FontWeight.normal,
  this.color,
  this.textAlign,
  this.overflow,
  this.softWrap,
  this.maxLines,
  this.height,
  this.letterSpacing,
  this.wrapWithTooltip = false,
  this.fontFamily,
});