LightColorGamut class

Represents the entire range of colors and tones achievable by the Hue device this class is applied to.

Constructors

LightColorGamut({required LightColorXy red, required LightColorXy green, required LightColorXy blue})
Creates a LightColorGamut object.
const
LightColorGamut.empty()
Creates an empty LightColorGamut object.
LightColorGamut.fromJson(Map<String, dynamic> dataMap)
Creates a LightColorGamut object from the JSON response to a GET request.
factory

Properties

blue LightColorXy
CIE XY gamut position in the blue color channel.
final
green LightColorXy
CIE XY gamut position in the green color channel.
final
hashCode int
The hash code for this object.
no setteroverride
red LightColorXy
CIE XY gamut position in the red color channel.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LightColorXy? red, LightColorXy? green, LightColorXy? blue, bool copyOriginalValues = true}) LightColorGamut
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
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