SubstringHighlight constructor

SubstringHighlight({
  1. bool caseSensitive = false,
  2. int? maxLines,
  3. TextOverflow overflow = TextOverflow.clip,
  4. String? term,
  5. List<String>? terms,
  6. required String text,
  7. TextAlign textAlign = TextAlign.left,
  8. TextStyle textStyle = const TextStyle(color: Colors.black),
  9. TextStyle textStyleHighlight = const TextStyle(color: Colors.red),
  10. String wordDelimiters = ' .,;?!<>[]~`@#\$%^&*()+-=|\/_',
  11. bool words = false,
})

Implementation

SubstringHighlight(
    {this.caseSensitive = false,
    this.maxLines,
    this.overflow = TextOverflow.clip,
    this.term,
    this.terms,
    required this.text,
    this.textAlign = TextAlign.left,
    this.textStyle = const TextStyle(
      color: Colors.black,
    ),
    this.textStyleHighlight = const TextStyle(
      color: Colors.red,
    ),
    this.wordDelimiters = ' .,;?!<>[]~`@#\$%^&*()+-=|\/_',
    this.words =
        false // default is to match substrings (hence the package name!)

    })
    : assert(term != null || terms != null);