RxState<T> constructor

RxState<T>([
  1. RxStateBase<T>? initial
])

Implementation

RxState([RxStateBase<T>? initial])
    : _subject = BehaviorSubject<RxStateBase<T>>.seeded(initial ?? const RxIdle());