OklabColor constructor

const OklabColor(
  1. double lightness,
  2. double a,
  3. double b,
  4. [int alpha = 255]
)

A color in the Oklab color space.

lightness, a, and b's normal range is 0.0 to 1.0, but some colors may fall slightly outside of it.

alpha must be >= 0 and <= 255.

See: https://bottosson.github.io/posts/oklab/

Implementation

const OklabColor(
  this.lightness,
  this.a,
  this.b, [
  int alpha = 255,
])  : assert(alpha >= 0 && alpha <= 255),
      super(alpha: alpha);