GroupedLight class
Represents a grouped light in the Philips Hue data structure.
Constructors
- GroupedLight({required ResourceType type, required String id, String idV1 = "", required Relative owner, required LightOn on, required LightDimming dimming, LightDimmingDelta? dimmingDelta, LightPowerUpColorColorTemperature? colorTemperature, LightColorTemperatureDelta? colorTemperatureDelta, LightColorXy? xy, required LightAlert alert, int? durationMilliseconds})
- Creates a GroupedLight object.
- GroupedLight.empty()
- Creates an empty GroupedLight object.
-
GroupedLight.fromJson(Map<
String, dynamic> dataMap) -
Creates a GroupedLight object from the JSON response to a GET request.
factory
Properties
- alert ↔ LightAlert
-
Joined alert control.
getter/setter pair
- bridge ↔ Bridge?
-
The bridge that this resource is associated with.
getter/setter pairinherited
- colorTemperature ↔ LightPowerUpColorColorTemperature?
-
Joined color temperature control.
getter/setter pair
- colorTemperatureDelta ↔ LightColorTemperatureDelta?
-
The change in color temperature of this light.
getter/setter pair
- dimming ↔ LightDimming
-
Joined dimming control – "dimming.brightness" contains average brightness
of group containing turned-on lights only.
getter/setter pair
- dimmingDelta ↔ LightDimmingDelta?
-
The change to this light's dimming property.
getter/setter pair
- durationMilliseconds ↔ int?
-
Duration of a light transition or timed effects in ms.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hueNetwork ↔ HueNetwork?
-
The HueNetwork that this resource is associated with.
getter/setter pairinherited
- id → String
-
Unique identifier representing a specific resource instance.
finalinherited
- idV1 → String
-
Clip v1 resource identifier.
final
- on ↔ LightOn
-
Joined on control & aggregated on state.
getter/setter pair
- originalType → ResourceType
-
no setterinherited
- owner → Relative
-
Child devices/services to group by the derived group.
final
- ownerAsResource → Resource
-
Returns a Resource object that represents the owner of this
Resource.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ ResourceType
-
Type of the supported resource.
getter/setter pairinherited
- xy ↔ LightColorXy?
-
Joined color control.
getter/setter pair
Methods
-
copyWith(
{ResourceType? type, String? id, String? idV1, Relative? owner, LightOn? on, LightDimming? dimming, Object? dimmingDelta = sentinelValue, Object? colorTemperature = sentinelValue, Object? colorTemperatureDelta = sentinelValue, Object? xy = sentinelValue, LightAlert? alert, int? durationMilliseconds = -1, bool copyOriginalValues = true}) → GroupedLight - Returns a copy of this object with its field values replaced by the ones provided to this method.
-
getRelativeAsResource(
Relative relative) → Resource -
Returns a Resource object that represents the
relative
of this Resource.inherited -
getRelativesAsResources(
List< Relative> relatives) → List<Resource> -
Returns a list of Resource objects that represent the
relatives
of this Resource.inherited -
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.
override
-
toJson(
{OptimizeFor optimizeFor = OptimizeFor.put}) → Map< String, dynamic> -
Converts this object into JSON format.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- sentinelValue → const Object
- Used in the copyWith method to check if nullable values are meant to be copied over.