ScenePaletteColor class
Represents the color palette of a scene.
Constructors
- ScenePaletteColor({required LightColorXy xy, required LightDimming dimming})
- Creates a ScenePaletteColor object.
- ScenePaletteColor.empty()
- Creates an empty ScenePaletteColor object.
-
ScenePaletteColor.fromJson(Map<
String, dynamic> dataMap) -
Creates a ScenePaletteColor object from the JSON response to a GET
request.
factory
Properties
- dimming ↔ LightDimming
-
The dimming and brightness of the light.
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
- xy ↔ LightColorXy
-
CIE XY gamut position.
getter/setter pair
Methods
-
copyWith(
{LightColorXy? xy, LightDimming? dimming, bool copyOriginalValues = true}) → ScenePaletteColor - 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