HighlightText constructor

const HighlightText({
  1. Key? key,
  2. required String text,
  3. String? highlight,
  4. TextStyle? style,
  5. Color? highlightColor = const Color.fromRGBO(255, 255, 0, 0.3),
  6. TextStyle? highlightStyle,
  7. bool ignoreCase = false,
  8. bool selectable = true,
  9. int? maxLines,
  10. TextOverflow? overflow,
  11. bool? softWrap,
})

Creates a HighlightText widget.

Implementation

const HighlightText({
  super.key,
  required this.text,
  this.highlight,
  this.style,
  this.highlightColor = const Color.fromRGBO(255, 255, 0, 0.3),
  this.highlightStyle,
  this.ignoreCase = false,
  this.selectable = true,
  this.maxLines,
  this.overflow,
  this.softWrap,
});