registerRecorder function

void registerRecorder(
  1. BuildContext context,
  2. SoundRecorderUIState recorder
)

Implementation

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