checkText method
dynamic
checkText()
Implementation
checkText(){
var textSplited = widget.dataText.split(" ");
var thisText = false;
textSplited.forEach((element1) {
thisText = false;
widget.dataSplitBold.forEach((element2) {
element2.split(" ").forEach((element3) {
if (element1 == element3){
thisText = true;
}
});
if(element1 == element2){
thisText = true;
// textSplited.removeWhere((element) => element == element2);
}else{
// thisText = false;
}
});
if (thisText){
listTextSpanBold.add(TextSpanDefault().geti(element1 + " ",
sizeFont: widget.sizeFont, fontweight: FontWeight.bold,colorText: widget.colorsText));
}else{
listTextSpanBold.add(TextSpanDefault().geti(element1 + " ",
sizeFont: widget.sizeFont, fontweight: FontWeight.normal,colorText: widget.colorsText));
}
});
setState(() {
});
// replytile.removeWhere((item) => item.id == '001')
// textSplited.removeWhere((element) => false)
}