TextHighlight constructor
TextHighlight({
- required String text,
- required Map<
String, HighlightedWord> words, - TextStyle? textStyle,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- double textScaleFactor = 1.0,
- int? maxLines,
- Locale? locale,
- StrutStyle? strutStyle,
- bool matchCase = false,
- HighlightBinding binding = HighlightBinding.all,
- PlaceholderAlignment spanAlignment = PlaceholderAlignment.middle,
- 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,
});