forTimerState static method
Trigger haptic feedback based on timer state
Implementation
static Future<void> forTimerState({
required bool isFinished,
bool isPaused = false,
bool isResumed = false,
}) async {
if (isFinished) {
await heavyImpact();
} else if (isPaused) {
await mediumImpact();
} else if (isResumed) {
await lightImpact();
}
}