ScenePalette constructor
ScenePalette({
- required List<
ScenePaletteColor> colors, - required List<
LightDimming> dimmings, - 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();