Skip to content

Commit

Permalink
chore: Add doc to onStateChanged() stream to retrieve async errors.
Browse files Browse the repository at this point in the history
fixes #414
  • Loading branch information
llfbandit committed Oct 10, 2024
1 parent bfe2391 commit 71cb0e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions record/lib/src/record.dart
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ class AudioRecorder {
/// Listen to recorder states [RecordState].
///
/// Provides pause, resume and stop states.
///
/// Also, you can retrieve async errors from it by adding [Function? onError].
Stream<RecordState> onStateChanged() => _stateStreamCtrl.stream;

/// Request for amplitude at given [interval].
Expand Down

0 comments on commit 71cb0e5

Please sign in to comment.