allWithVariants property

Map<String, SoundRecipe> get allWithVariants

All base cues plus their @mechanical / @subtle variants.

Implementation

static Map<String, SoundRecipe> get allWithVariants {
  final result = <String, SoundRecipe>{...all};
  for (final entry in all.entries) {
    for (final profile in const [
      FeedbackProfile.mechanical,
      FeedbackProfile.subtle,
    ]) {
      result[variantKey(entry.key, profile)] =
          forProfile(entry.value, profile);
    }
  }
  return result;
}