ScenePalette class
Represents the palette in a scene.
Constructors
-
ScenePalette({required List<
ScenePaletteColor> colors, required List<LightDimming> dimmings, required List<ScenePaletteColorTemperature> colorTemperatures}) - Creates a ScenePalette object.
- ScenePalette.empty()
- Creates an empty ScenePalette object.
-
ScenePalette.fromJson(Map<
String, dynamic> dataMap) -
Creates a ScenePalette object from the JSON response to a GET request.
factory
Properties
-
colors
↔ List<
ScenePaletteColor> -
The list of colors in this color palette.
getter/setter pair
-
colorTemperatures
↔ List<
ScenePaletteColorTemperature> -
The list of color temperature settings for this palette.
getter/setter pair
-
dimmings
↔ List<
LightDimming> -
The list of dimming and brightness settings for this palette.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< ScenePaletteColor> ? colors, List<LightDimming> ? dimmings, List<ScenePaletteColorTemperature> ? colorTemperatures, bool copyOriginalValues = true}) → ScenePalette - Returns a copy of this object with its field values replaced by the ones provided to this method.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshOriginals(
) → void - Called after a successful PUT request, this method refreshed the "original" data in this object.
-
toJson(
{OptimizeFor optimizeFor = OptimizeFor.put}) → Map< String, dynamic> - Converts this object into JSON format.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override