LightPowerUpColor class
Represents the color that is meant to be applied to the light on power up.
Constructors
- LightPowerUpColor({required LightPowerUpColorMode mode, required LightPowerUpColorColorTemperature colorTemperature, required LightColorXy color})
- Creates a LightPowerUpColor object.
- LightPowerUpColor.empty()
- Creates an empty LightPowerUpColor object.
-
LightPowerUpColor.fromJson(Map<
String, dynamic> dataMap) -
Creates a LightPowerUpColor object from the JSON response to a GET
request.
factory
Properties
- color ↔ LightColorXy
-
CIE XY gamut position.
getter/setter pair
- colorTemperature ↔ LightPowerUpColorColorTemperature
-
The color temperature of the light.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- mode ↔ LightPowerUpColorMode
-
State to activate after power up.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{LightPowerUpColorMode? mode, LightPowerUpColorColorTemperature? colorTemperature, LightColorXy? color, bool copyOriginalValues = true}) → LightPowerUpColor - 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