onStateChanged method

Stream<RecordState> onStateChanged()
inherited

Listen to recorder states RecordState.

Provides pause, resume and stop states.

Also, you can retrieve async errors from it by adding Function? onError callback to the subscription.

Implementation

Stream<RecordState> onStateChanged() =>
    _recordStateStream ?? _initStateStream();