brightest property

O brightest

Returns the color with the highest perceived brightness value.

Implementation

O get brightest => colors.reduce((color1, color2) {
      return color1.toHspColor().perceivedBrightness <
              color2.toHspColor().perceivedBrightness
          ? color2
          : color1;
    });