ScenePalette constructor

ScenePalette({
  1. required List<ScenePaletteColor> colors,
  2. required List<LightDimming> dimmings,
  3. required List<ScenePaletteColorTemperature> colorTemperatures,
})

Creates a ScenePalette object.

Implementation

ScenePalette({
  required this.colors,
  required this.dimmings,
  required this.colorTemperatures,
})  : _originalColors = colors.map((color) => color.copyWith()).toList(),
      _originalDimmings = dimmings.map((d) => d.copyWith()).toList(),
      _originalColorTemperatures =
          colorTemperatures.map((ct) => ct.copyWith()).toList();