ParsedText constructor

ParsedText({
  1. Key? key,
  2. required String text,
  3. List<MatchText> parse = const <MatchText>[],
  4. TextStyle? style,
  5. TextAlign alignment = TextAlign.start,
  6. TextDirection? textDirection,
  7. bool softWrap = true,
  8. TextOverflow overflow = TextOverflow.clip,
  9. double textScaleFactor = 1.0,
  10. StrutStyle? strutStyle,
  11. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  12. int? maxLines,
  13. Function? onTap,
  14. bool selectable = false,
  15. RegexOptions regexOptions = const RegexOptions(),
})

Creates a parsedText widget

text paramtere should not be null and is always required. If the style argument is null, the text will use the style from the closest enclosing DefaultTextStyle.

Implementation

ParsedText({
  Key? key,
  required this.text,
  this.parse = const <MatchText>[],
  this.style,
  this.alignment = TextAlign.start,
  this.textDirection,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor = 1.0,
  this.strutStyle,
  this.textWidthBasis = TextWidthBasis.parent,
  this.maxLines,
  this.onTap,
  this.selectable = false,
  this.regexOptions = const RegexOptions(),
}) : super(key: key);