asSubject method

S asSubject()

Returns the underlying Subject (preserving its subtype — e.g. BehaviorSubject<int> stays a BehaviorSubject<int>).

Implementation

S asSubject() => _subject;