SceneActionAction class

Represents an action to be executed on recall.

Constructors

SceneActionAction({required LightOn on, required LightDimming dimming, required LightColorXy xy, required LightPowerUpColorColorTemperature colorTemperature, required LightGradient gradient, required String effect, int? durationMilliseconds})
Creates a SceneActionAction object.
SceneActionAction.empty()
Creates an empty SceneActionAction object.
SceneActionAction.fromJson(Map<String, dynamic> dataMap)
Creates a SceneActionAction object from the JSON response to a GET request.
factory

Properties

colorTemperature LightPowerUpColorColorTemperature
The color temperature of the light.
getter/setter pair
dimming LightDimming
The brightness percentage of the light.
getter/setter pair
durationMilliseconds int?
Duration of a light transition or timed effects in ms.
getter/setter pair
effect String
Basic feature containing effect properties.
getter/setter pair
gradient LightGradient
Basic feature containing gradient properties.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
on LightOn
On/Off state of the light on=true, off=false
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
xy LightColorXy
CIE XY gamut position.
getter/setter pair

Methods

copyWith({LightOn? on, LightDimming? dimming, LightColorXy? xy, LightPowerUpColorColorTemperature? colorTemperature, LightGradient? gradient, String? effect, int? durationMilliseconds = -1, bool copyOriginalValues = true}) SceneActionAction
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