registerReadOnlyRx<T> method

  1. @protected
void registerReadOnlyRx<T>(
  1. ReadOnlyRx<T> readOnlyRx
)

Register a ReadOnlyRx to be automatically disposed

Implementation

@protected
void registerReadOnlyRx<T>(ReadOnlyRx<T> readOnlyRx) {
  if (_disposed) {
    throw StateError('Cannot register ReadOnlyRx in disposed controller');
  }
  _readOnlyRx.add(readOnlyRx);
}