DynamicToneRule class

A sound rule that generates and plays a tone dynamically.

Inheritance

Constructors

DynamicToneRule.new({required double frequency, required int duration, HapticsType? hapticType, required bool condition(BuildContext? context, dynamic data)})

Properties

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

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.
override
toString() String
A string representation of this object.
inherited

Operators

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