SearchHighlightText constructor

const SearchHighlightText(
  1. String text, {
  2. Key? key,
  3. String? searchText,
  4. RegExp? searchRegExp,
  5. TextStyle? style,
  6. int? maxLines,
  7. TextOverflow? overflow,
  8. TextAlign? textAlign,
  9. TextDirection? textDirection,
  10. bool? softWrap,
  11. double? textScaleFactor,
  12. Locale? locale,
  13. StrutStyle? strutStyle,
  14. TextWidthBasis? textWidthBasis,
  15. TextStyle? highlightStyle,
})

Implementation

const SearchHighlightText(
  this.text, {
  Key? key,
  this.searchText,
  this.searchRegExp,
  this.style,
  this.maxLines,
  this.overflow,
  this.textAlign,
  this.textDirection,
  this.softWrap,
  this.textScaleFactor,
  this.locale,
  this.strutStyle,
  this.textWidthBasis,
  this.highlightStyle,
})  : assert(searchText == null || searchRegExp == null),
      super(key: key);