expectHapticPlayed method
Helper assertion: verifies a semantic feedback type was performed.
Implementation
void expectHapticPlayed(AiroHapticFeedbackType type) {
final match = invocations.any((inv) => inv.feedbackType == type);
if (!match) {
throw StateError('Expected haptic feedback ${type.name} to be played');
}
}