ProKitText constructor
const
ProKitText({
- Key? key,
- String? text,
- double? size,
- FontWeight? weight,
- String? family,
- Color? color,
- int? lines,
- TextAlign? align,
- double? letterSpacing,
- TextStyle? textStyle,
- bool? isUnderlined = false,
- List<
ProKitTextSpan> ? textSpans, - TextOverflow? overflow,
- bool selectable = false,
Creates an instance of ProKitText.
Parameters:
text
: The string to display.size
: The font size.weight
: The font weight.color
: The text color.lines
: Maximum number of lines to display.letterSpacing
: The amount of space between letters.align
: The alignment of the text.isUnderlined
: Whether the text is underlined.textSpans
: List of text spans for RichText support.overflow
: The text overflow behavior.selectable
: Whether the text is selectable.
Implementation
const ProKitText({
super.key,
this.text,
this.size,
this.weight,
this.family,
this.color,
this.lines,
this.align,
this.letterSpacing,
this.textStyle,
this.isUnderlined = false,
this.textSpans,
this.overflow,
this.selectable = false,
});