mute method

Future<bool> mute(
  1. Device device
)

mute mute the device

Implementation

Future<bool> mute(Device device) async {
  try {
    final command = 'SoundVolumeView /mute ${device.name}';
    device.muted = 'Yes';
    await shell.run(command);
    return true;
  } catch( error ) {
    return false;
  }
}