Group class abstract

Constructors

Group([dynamic updates(GroupBuilder b)])
factory
Group.fromJson(Map json, {int? id})
factory

Properties

action GroupAction?
no setter
className String?
As of 1.11. Category of Room types. Default is: Other.
no setter
colors → HueColor?
get the current color of the light in all possible means by the bridge
no setter
groupLights → BuiltList<Light>?
no setter
hashCode int
The hash code for this object.
no setterinherited
id int?
no setter
lightIds → BuiltList<String>?
The ordered set of light ids from the lights which are in the group. This resource shall contain an array of at least one element with the exception of the “Room” type: The Room type may contain an empty lights array. Each element can appear only once. Order of lights on creation is preserved. A light id must be an existing light resource in /lights. If an invalid lights resource is given, error 7 shall be returned and the group is not created. There shall be no change in the lights.
no setter
modelId String?
As of 1.4. Uniquely identifies the hardware model of the luminaire. Only present for automatically created Luminaires.
no setter
name String?
Human readable name of the group. If name is not specified one is generated for you (default name is “Group”)
no setter
recycle bool?
When true: Resource is automatically deleted when not referenced anymore in any resource link. Only on creation of resource. “false” when omitted.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state GroupState?
no setter
type String?
Type of the Group. If not provided on creation a “LightGroup” is created. Supported types:
no setter
uniqueId String?
As of 1.9. Unique Id in AA:BB:CC:DD format for Luminaire groups or AA:BB:CC:DD-XX format for Lightsource groups, where XX is the lightsource position.
no setter

Methods

changeColor({num red = 0, num green = 0, num blue = 0}) Group
change the color of the group on the bridge with rgb values ranging from 0 to 1
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(GroupBuilder)) Group
Rebuilds the instance.
inherited
toBridgeObject({String? action}) Map
toBuilder() GroupBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<Group>
no setter