invert property

ColorFilter invert
getter/setter pair

Inverts the color by flipping it along the red/green, blue/yellow, and light/dark axes.

Implementation

static ColorFilter invert = new ColorFilter((Color inputColor, [List? args]) {
  CielabColor color = inputColor.toCielabColor();
  return new CielabColor(100 - color.l, -1 * color.a, -1 * color.b);
}, CielabColor);