isAudioMuted method
Implementation
@override
Future<bool> isAudioMuted() {
if (defaultTargetPlatform != TargetPlatform.iOS) {
throw UnimplementedError('isAudioMuted() is only implemented on iOS.');
}
return methodChannel.invokeMethod<bool>('isAudioMuted').then((value) {
if (value == null) {
throw PlatformException(
code: 'NULL_AUDIO_MUTED',
message: 'Received null value for isAudioMuted from platform.',
);
}
return value;
});
}