onStateChanged method
Implementation
Stream<RecordState> onStateChanged() {
_stateStreamCtrl ??= StreamController(
onCancel: () {
_stateStreamCtrl?.close();
_stateStreamCtrl = null;
},
);
return _stateStreamCtrl!.stream;
}