formatRichTextWithWord method
RichText?
formatRichTextWithWord(
- String keyWord,
- List<
TextStyle> styles, { - TextAlign textAlign = TextAlign.left,
- TextOverflow overflow = TextOverflow.visible,
Implementation
RichText? formatRichTextWithWord(
String keyWord,
List<TextStyle> styles, {
TextAlign textAlign = TextAlign.left,
TextOverflow overflow = TextOverflow.visible,
}) {
if (keyWord.trim().isEmpty || isEmpty) {
return null;
}
debugPrint('formatRichTextWithWord$styles');
return formatColorRichText(styles, regex: RegExp(keyWord, caseSensitive: false));
}