tryFromValue static method

SystemSoundID? tryFromValue(
  1. int value
)

Looks up a sound by its raw SystemSoundID.value, or null when unknown.

Implementation

static SystemSoundID? tryFromValue(int value) {
  for (final sound in values) {
    if (sound.value == value) {
      return sound;
    }
  }
  return null;
}