setColorByTex method

void setColorByTex(
  1. String tex,
  2. Color color, {
  3. bool substring = true,
  4. bool caseSensitive = true,
})

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);
  }
}