WText constructor
const
WText(
- String text, {
- Key? key,
- String? className,
- TextStyle? style,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- TextAlign? textAlign,
- int? maxLines,
- TextOverflow? overflow,
- double? letterSpacing,
- double? wordSpacing,
- double? height,
- TextDecoration? decoration,
- Color? decorationColor,
- 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,
});