mirek property

int? mirek

Color temperature in mirek or null when the light color is not in the ct spectrum.

Range: 153 - 500

Throws MirekException if mirek is set to something outside of the range 153 to 500 (inclusive).

Implementation

int? get mirek => _mirek;
void mirek=(int? mirek)

Implementation

set mirek(int? mirek) {
  if (isValidMirek(mirek)) {
    _mirek = mirek;
  } else {
    throw MirekException.withValue(mirek);
  }
}