HighlightText constructor

const HighlightText(
  1. String data, {
  2. Key? key,
  3. required Highlight highlight,
  4. TextStyle? style,
  5. TextStyle highlightStyle = const TextStyle(color: Colors.blue, fontWeight: FontWeight.w600),
  6. bool caseSensitive = false,
  7. bool detectWords = false,
})

Implementation

const HighlightText(
  this.data, {
  Key? key,
  required this.highlight,
  this.style,
  this.highlightStyle = const TextStyle(
    color: Colors.blue,
    fontWeight: FontWeight.w600,
  ),
  this.caseSensitive = false,
  this.detectWords = false,
}) : super(key: key);