effectiveChroma property

IntentChroma? get effectiveChroma

chroma, or the lean of the first colour that has one.

Implementation

IntentChroma? get effectiveChroma {
  if (chroma != null) return chroma;
  for (final c in colors) {
    if (c.leanChroma != null) return c.leanChroma;
  }
  return null;
}