stopAudioRecording method Null safety

Future<int> stopAudioRecording()

Stops the audio recording on the client.

If the local client leaves the room, audio recording automatically stops. You can call the stopAudioRecording method to manually stop recording during calls. You must call this method before calling leaveChannel

Implementation

Future<int> stopAudioRecording() async {
  IntValue reply = await _api.stopAudioRecording();
  return reply.value ?? -1;
}