SoundRule class abstract

Abstract base class for defining sound rules.

Implementers

Constructors

SoundRule.new({required String audioPath, double volume = 1.0, double pitch = 1.0, int priority = 0, bool allowLayering = false, HapticsType? hapticType, required bool condition(BuildContext? context, dynamic data)})
Constructs a SoundRule with playback and condition configurations.

Properties

allowLayering bool
final
audioPath String
final
condition bool Function(BuildContext? context, dynamic data)
final
hapticType → HapticsType?
final
hashCode int
The hash code for this object.
no setterinherited
pitch double
final
priority int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volume double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldTrigger(BuildContext? context, dynamic data) bool
Evaluates whether this rule should be triggered.
toString() String
A string representation of this object.
inherited

Operators

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