SoundRules class
Provides commonly used SoundRule configurations.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
announce(
{required String text}) → VoiceRule - A rule for announcing spoken messages.
-
beep(
{double frequency = 440.0, int duration = 200}) → DynamicToneRule - A rule that emits a short dynamic beep tone.
-
shake(
{String audioPath = 'shake.mp3'}) → AudioRule - A rule triggered on shake gesture.
-
stateSuccess(
{String audioPath = 'success.mp3'}) → AudioRule - A rule triggered for success state feedback.
-
swipe(
{String audioPath = 'swipe.mp3', double minVelocity = 500.0}) → AudioRule - A rule triggered on horizontal swipe with minimum velocity.
-
tap(
{String audioPath = 'click.mp3'}) → AudioRule - A rule triggered on tap interaction.