resolveKey method

String resolveKey(
  1. String cueName,
  2. FeedbackProfile profile
)

Resolves the key to play for cueName under profile, falling back to the base cue when the app registered no profile-specific variant.

Implementation

String resolveKey(String cueName, FeedbackProfile profile) {
  final variant = DefaultSoundCues.variantKey(cueName, profile);
  return _assets.has(variant) ? variant : cueName;
}