registerRecorder function
Implementation
void registerRecorder(BuildContext context, SoundRecorderUIState recorder) {
var controller = RecorderPlaybackController.of(context)?._state;
if (controller != null) {
controller._recorderUIState = recorder;
controller._registerRecorder(recorder); // registers stream
}
}