invert static method

int invert(
  1. int color
)

Invert the RGB channels (alpha preserved).

Implementation

static int invert(int color) => argbToInt(
  alpha(color),
  255 - red(color),
  255 - green(color),
  255 - blue(color),
);