invert method

void invert()

Inverts the current RGB color channels.

Implementation

void invert() =>
    value = Color.fromRGBO(
      255 - value.red,
      255 - value.green,
      255 - value.blue,
      value.opacity,
    );