setColorByTex method
Implementation
void setColorByTex(String tex, Color color,
{bool substring = true, bool caseSensitive = true}) {
var partsToColor =
getPartsByTex(tex, substring: substring, caseSensitive: caseSensitive);
for (var part in partsToColor) {
part.setColor(color: color);
}
}