fromSubject<T> static method

RxState<T> fromSubject<T>(
  1. BehaviorSubject<T> subject
)

Implementation

static RxState<T> fromSubject<T>(BehaviorSubject<T> subject) {
  return RxState<T>(subject.valueOrNull).addStream(subject);
}