RxState<T> constructor

RxState<T>([
  1. T? value
])

Implementation

RxState([T? value]) {
  this._controllableValue = _createSubject();
  this._value = _createSubject(value)..addStream(_controllableValue);
}