toggleRecord method

void toggleRecord({
  1. required bool canRecord,
})

Implementation

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