reverseColor function

Color reverseColor(
  1. Color color
)

Inverts the RGB values of the input color and sets the alpha value to 255 (fully opaque) to produce the resulting color. The input color should have an alpha value of 255.

Implementation

Color reverseColor(Color color) {
  return Color((0xFFFFFFFF - color.value) | 0xFF000000);
}