subscribe method
Subscribes with the provided observer
.
Implementation
@override
Disposable subscribe(Observer<T> observer) {
if (_hasCompleted && _hasValue) {
observer.next(_value);
observer.complete();
return const DisposedDisposable();
}
return super.subscribe(observer);
}