checkIfSoundVolumeViewInstalled method
checkIfSoundVolumeViewInstalled checks if SoundVolumeView is installed in the system
Implementation
Future<bool> checkIfSoundVolumeViewInstalled() async {
final isPlatformSupported = platformSupported();
if( !isPlatformSupported ) return false;
try {
await shell.run('SoundVolumeView /GetPercent "CHECK"');
stateController.add(SoundVolumeViewState.installed);
return true;
} catch( error ){
stateController.add(SoundVolumeViewState.notInstalled);
return false;
}
}