ProKitText constructor

const ProKitText({
  1. Key? key,
  2. String? text,
  3. double? size,
  4. FontWeight? weight,
  5. String? family,
  6. Color? color,
  7. int? lines,
  8. TextAlign? align,
  9. double? letterSpacing,
  10. TextStyle? textStyle,
  11. bool? isUnderlined = false,
  12. List<ProKitTextSpan>? textSpans,
  13. TextOverflow? overflow,
  14. 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,
});