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 = ColorFilter((Color inputColor, [List<num> args = const []]) {
  var color = inputColor.toCielabColor();
  return CielabColor(100 - color.l, -1 * color.a, -1 * color.b);
}, CielabColor);