SubstringHighlight constructor

SubstringHighlight(
  1. {@required String text,
  2. @required String term,
  3. TextStyle textStyle: const TextStyle(color: Colors.black),
  4. TextStyle textStyleHighlight: const TextStyle(color: Colors.red)}
)

Implementation

SubstringHighlight({
  @required this.text,
  @required this.term,
  this.textStyle = const TextStyle(
    color: Colors.black,
  ),
  this.textStyleHighlight = const TextStyle(
    color: Colors.red,
  ),
});