for example, my origin string is "ABCDD00221", I can't match it with target string "0" or "00", "002" is OK.
EasyRichText( "${item.name}(${item.code})", defaultStyle: TextStyle( fontSize: 15, color: Color(0xff333333), ), patternList: [getDefaultPattern(input)], ),
for example, my origin string is "ABCDD00221", I can't match it with target string "0" or "00", "002" is OK.
EasyRichText( "${item.name}(${item.code})", defaultStyle: TextStyle( fontSize: 15, color: Color(0xff333333), ), patternList: [getDefaultPattern(input)], ),
EasyRichTextPattern getDefaultPattern(String input) { return EasyRichTextPattern( targetString: input, matchOption: [0], hasSpecialCharacters: true, style: TextStyle(color: Color(0xffEF3C34)), );