TextHighlight constructor

TextHighlight({
  1. required String text,
  2. required Map<String, HighlightedWord> words,
  3. TextStyle? textStyle,
  4. TextAlign textAlign = TextAlign.start,
  5. TextDirection? textDirection,
  6. bool softWrap = true,
  7. TextOverflow overflow = TextOverflow.clip,
  8. double textScaleFactor = 1.0,
  9. int? maxLines,
  10. Locale? locale,
  11. StrutStyle? strutStyle,
  12. bool matchCase = false,
  13. HighlightBinding binding = HighlightBinding.all,
  14. PlaceholderAlignment spanAlignment = PlaceholderAlignment.middle,
  15. bool splitOnLongWord = false,
})

Implementation

TextHighlight({
  required this.text,
  required this.words,
  this.textStyle,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.textScaleFactor = 1.0,
  this.maxLines,
  this.locale,
  this.strutStyle,
  this.matchCase = false,
  this.binding = HighlightBinding.all,
  this.spanAlignment = PlaceholderAlignment.middle,
  this.splitOnLongWord = false,
});