Scene class
Device can be set directly to specified state, which is represented as Scene.
Constructors
- Scene({required SceneClass sceneClass, int val1 = 0, int val2 = 0, String? val3})
-
const
- Scene.autoDelayOff({required int brightness, required Duration timer})
-
Turn on the device to specified
brightness
and start atimer
to turn off the light after specified number of minutes. - Scene.color({required int color, required int brightness})
-
Change the device to specified
color
andbrightness
.const - Scene.colorFlow({required Flow flow})
-
Start a color
flow
in specified style. - Scene.colorTemperature({required int colorTemperature, required int brightness})
-
Change the device to specified
colorTemperature
andbrightness
.const - Scene.hsv({required int hue, required int saturation, required int brightness})
-
Change the device to specified color and
brightness
.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sceneClass → SceneClass
-
Class of scene.
final
- val1 → int
-
sceneClass specific value.
final
- val2 → int
-
sceneClass specific value.
final
- val3 → String?
-
sceneClass specific value.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override