LightColor class
Represents the current color and color capabilities of a Philips Hue light.
Constructors
- LightColor({required LightColorXy xy, required LightColorGamut gamut, required LightColorGamutType gamutType})
- Creates a LightColor object.
- LightColor.empty()
- Creates an empty LightColor object.
-
LightColor.fromJson(Map<
String, dynamic> dataMap) -
Creates a LightColor object from the JSON response to a GET request.
factory
Properties
- gamut → LightColorGamut
-
Color gamut of color bulb.
final
- gamutType → LightColorGamutType
-
The gamut types supported by hue.
final
- 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, LightColorGamut? gamut, LightColorGamutType? gamutType, bool copyOriginalValues = true}) → LightColor - 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