play method
Implementation
@override
Future<void> play(SystemSoundID soundId) async {
try {
await methodChannel.invokeMethod('play', {'soundId': soundId.value});
} catch (e) {
print("调用原生方法失败: $e");
}
}
@override
Future<void> play(SystemSoundID soundId) async {
try {
await methodChannel.invokeMethod('play', {'soundId': soundId.value});
} catch (e) {
print("调用原生方法失败: $e");
}
}