onStateChanged method

Stream<RecordState> onStateChanged()

Implementation

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

  return _stateStreamCtrl!.stream;
}