toggleRecord method
Implementation
void toggleRecord({required bool canRecord}) {
emit(canRecord ? RecordAudioReady() : RecordAudioClosed());
}
void toggleRecord({required bool canRecord}) {
emit(canRecord ? RecordAudioReady() : RecordAudioClosed());
}