WText constructor

const WText(
  1. String text, {
  2. Key? key,
  3. String? className,
  4. TextStyle? style,
  5. Color? color,
  6. double? fontSize,
  7. FontWeight? fontWeight,
  8. TextAlign? textAlign,
  9. int? maxLines,
  10. TextOverflow? overflow,
  11. double? letterSpacing,
  12. double? wordSpacing,
  13. double? height,
  14. TextDecoration? decoration,
  15. Color? decorationColor,
  16. TextDecorationStyle? decorationStyle,
})

Creates a Wind-styled text widget.

The text parameter is required and specifies the text to display. The className parameter allows you to specify TailwindCSS-like utility classes for styling.

Implementation

const WText(
  this.text, {
  super.key,
  this.className,
  this.style,
  this.color,
  this.fontSize,
  this.fontWeight,
  this.textAlign,
  this.maxLines,
  this.overflow,
  this.letterSpacing,
  this.wordSpacing,
  this.height,
  this.decoration,
  this.decorationColor,
  this.decorationStyle,
});