stopRecorder method

Future<String> stopRecorder()

Stops recorder from the platform channel, then closes recorder stream

Implementation

Future<String> stopRecorder() async {
  if (!this.getIsRecording) {
    throw new RecorderStoppedException("Recorder is not running.");
  }

  String result = await _channel.invokeMethod("stopRecorder");
  this.setIsRecording = false;
  _removeRecorderCallback();

  return result;
}