zetaColorSwatch property

ZetaColorSwatch zetaColorSwatch

ZetaColorSwatch is a color swatch utility to produce different shades of a primary color, following a specific progression of lightness and darkness.

This factory constructor creates a color swatch based on a provided primary color. The darker and lighter shades are determined by predefined percentage values.

It ensures that the 60th and 80th shades from swatch are abide by the AA and AAA accessibility standards on background, respectively. background color defaults to ZetaColorBase.warm shade10.

Implementation

ZetaColorSwatch get zetaColorSwatch => ZetaColorSwatch.fromColor(this);