onRecordingStateChanged property

Stream<RecordingStateChangedEvent> get onRecordingStateChanged

Called when the recording state for the service has been updated.

Implementation

Stream<RecordingStateChangedEvent> get onRecordingStateChanged => _client
    .onEvent
    .where((event) => event.name == 'BackgroundService.recordingStateChanged')
    .map((event) => RecordingStateChangedEvent.fromJson(event.parameters));