From 71cb0e5bfc811cba753c479209e02e4260a21778 Mon Sep 17 00:00:00 2001 From: llfbandit Date: Thu, 10 Oct 2024 15:57:53 +0200 Subject: [PATCH] chore: Add doc to onStateChanged() stream to retrieve async errors. fixes #414 --- record/lib/src/record.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/record/lib/src/record.dart b/record/lib/src/record.dart index 89716d3..3097d25 100644 --- a/record/lib/src/record.dart +++ b/record/lib/src/record.dart @@ -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 onStateChanged() => _stateStreamCtrl.stream; /// Request for amplitude at given [interval].