dispose method
void
dispose()
Disposes of resources used by AudioSender.
This method cancels the audio subscription, sets the serving audio flag to false, and disposes of the audio recorder resources.
Implementation
void dispose() {
_audioSubscription?.cancel(); // Cancel the audio subscription if it exists
_isServingAudio = false; // Reset the serving audio flag
_record.dispose(); // Dispose of the audio recorder resources
}