SimpleHighlightText constructor
const
SimpleHighlightText({
- Key? key,
- required String text,
- required List<
String> keywords, - TextStyle? style,
- TextStyle? highlightStyle,
- Color? highlightColor,
- bool caseSensitive = false,
- void onTap()?,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- TextScaler textScaler = TextScaler.noScaling,
- int? maxLines,
- Locale? locale,
- StrutStyle? strutStyle,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
Implementation
const SimpleHighlightText({
super.key,
required this.text,
required this.keywords,
this.style,
this.highlightStyle,
this.highlightColor,
this.caseSensitive = false,
this.onTap,
this.textAlign = TextAlign.start,
this.textDirection,
this.softWrap = true,
this.overflow = TextOverflow.clip,
this.textScaler = TextScaler.noScaling,
this.maxLines,
this.locale,
this.strutStyle,
this.textWidthBasis = TextWidthBasis.parent,
this.textHeightBehavior,
this.selectionColor,
});