setCloseMicrophone method

Future<bool> setCloseMicrophone()

Implementation

Future<bool> setCloseMicrophone() async {
  closeMicrophone = !closeMicrophone;
  if (callStatus == 1) {
    await rtcEngine?.enableLocalAudio(!closeMicrophone);
  }
  return closeMicrophone;
}