EntertainmentStreamCommand class

Constructors

EntertainmentStreamCommand({required int channel, required EntertainmentStreamColor color, Duration? animationDuration, Duration? waitAfterAnimation, AnimationType animationType = AnimationType.none})

Properties

animationDuration Duration?
The duration of the animation.
final
animationType AnimationType
How to animate into this command from the last one that was sent.
final
channel int
The channel that this command is for.
final
color EntertainmentStreamColor
The color command to send on the given channel.
final
currentColor EntertainmentStreamColor?
The current color of the command based on the animation.
no setter
didRun bool
Whether or not this command has been run.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateStream Stream<CommandState>
The current state of this command.
no setter
waitAfterAnimation Duration?
The duration to wait after the animation has finished.
final

Methods

copy() EntertainmentStreamCommand
Returns a copy of this object.
copyWith({int? channel, EntertainmentStreamColor? color, Duration? animationDuration = const Duration(seconds: -1), Duration? waitAfterAnimation = const Duration(seconds: -1), AnimationType? animationType}) EntertainmentStreamCommand
Returns a copy of this object with its field values replaced by the ones provided to this method.
dispose() → void
Disposes of this command, and prevents memory leaks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(EntertainmentStreamColor? previousColor) → void
Runs this command.
toString() String
A string representation of this object.
override

Operators

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