Flow class
Flow used when starting color flow.
See Device.startFlow.
Constructors
-
Flow({required int count, required FlowAction action, required List<
FlowTransition> transitions}) -
const
- Flow.police({int count = 1, FlowAction action = const FlowAction.turnOff(), int brightness = 100, Duration duration = const Duration(milliseconds: 250)})
- Flow preset - changing red and blue color like police lights.
- Flow.pulse({required int color, int count = 1, FlowAction action = const FlowAction.turnOff(), int brightness = 100, Duration duration = const Duration(milliseconds: 250)})
-
Flow preset - creates pulse with given
color
. - Flow.rgb({int count = 1, FlowAction action = const FlowAction.recover(), int brightness = 100, Duration duration = const Duration(milliseconds: 250), Duration sleepDuration = const Duration(milliseconds: 2500)})
- Flow preset - changes color from red, to green to blue.
- Flow.temperature({int start = 1700, int end = 6500, int count = 1, FlowAction action = const FlowAction.turnOff(), int brightness = 100, Duration duration = const Duration(seconds: 15)})
-
Flow preset - changes color temperature from
start
toend
.
Properties
- action → FlowAction
-
Action to take after the flow ends.
final
- count → int
-
Total number of times to run this flow.
final
- expression → String
-
Returns expression that can be sent to the device.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transitions
→ List<
FlowTransition> -
List of
FlowTransition
.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