SimpleHighlightText constructor

const SimpleHighlightText({
  1. Key? key,
  2. required String text,
  3. required List<String> keywords,
  4. TextStyle? style,
  5. TextStyle? highlightStyle,
  6. Color? highlightColor,
  7. bool caseSensitive = false,
  8. void onTap(
    1. String
    )?,
  9. TextAlign textAlign = TextAlign.start,
  10. TextDirection? textDirection,
  11. bool softWrap = true,
  12. TextOverflow overflow = TextOverflow.clip,
  13. TextScaler textScaler = TextScaler.noScaling,
  14. int? maxLines,
  15. Locale? locale,
  16. StrutStyle? strutStyle,
  17. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  18. TextHeightBehavior? textHeightBehavior,
  19. 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,
});