FlowTransition class

Transition used in Flow.

Constructors

FlowTransition({Duration? duration, FlowTransitionMode? mode, int? value, int? brightness})
Creates FlowTransition.
const
FlowTransition.colorTemperature({Duration duration = const Duration(milliseconds: 500), required int colorTemperature, required int brightness})
Creates FlowTransition with color temperature and brightness.
const
FlowTransition.rgb({Duration duration = const Duration(milliseconds: 500), required int color, required int brightness})
Creates FlowTransition with RGB value and brightness.
const
FlowTransition.sleep({Duration duration = const Duration(milliseconds: 500)})
Creates sleep transition.
const

Properties

brightness int?
Brightness value from 1 to 100. When set to -1, brightness is ignored. Ignored when when mode is FlowTransitionMode.sleep
final
duration Duration?
Duration of transition or sleep time when mode is FlowTransitionMode.sleep
final
hashCode int
The hash code for this object.
no setteroverride
mode FlowTransitionMode?
Mode which will be used for transition;
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int?
Color when mode is FlowTransitionMode.color or color temperature when mode is FlowTransitionMode.colorTemperature.
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