I want to play a "beep" sound from flutter. I did try to use SystemSound.play but it doesn't seem to work. Please help!.thank in advance.
Future<void> play(SystemSoundType type) async {
await SystemChannels.platform.invokeMethod<void>(
"SystemSound.play",
type.toString(),
);
}
void main() {
play(SystemSoundType.click);
}