onProgress property

Stream<RecordingDisposition>? get onProgress

A stream on which FlutterSound will post the recorder progression. You may listen to this Stream to have feedback on the current recording.

Example:

        _recorderSubscription = myRecorder.onProgress.listen((e)
        {
                Duration maxDuration = e.duration;
                double decibels = e.decibels
                ...
        }

Implementation

Stream<RecordingDisposition>? get onProgress =>
    (_recorderController != null) ? _recorderController!.stream : null;