idozahavy / flutter_clickable_pattern_text

Other
1 stars 1 forks source link

extract text regex matcher to a class of its own #7

Open idozahavy opened 3 years ago

idozahavy commented 3 years ago

make a new class that only gets the text and the pattern and convert it to a tree of texts that goes like this

[ RegularText: {text: 'a'}, PatternText: { text: 'b', children: [ PatternText: {text: 'c'}, ] }, RegularText: {text: 'd'}, ]