RxCommandStream<TParam, TResult> constructor
RxCommandStream<TParam, TResult>(StreamProvider<TParam, TResult> provider, Observable<bool> canExecute, bool emitInitialCommandResult, bool emitLastResult, bool emitsLastValueToNewSubscriptions, TResult initialLastResult)
Implementation
factory RxCommandStream(
StreamProvider<TParam, TResult> provider,
Observable<bool> canExecute,
bool emitInitialCommandResult,
bool emitLastResult,
bool emitsLastValueToNewSubscriptions,
TResult initialLastResult) {
return new RxCommandStream._(
provider,
emitsLastValueToNewSubscriptions || emitInitialCommandResult
? new BehaviorSubject<TResult>()
: new PublishSubject<TResult>(),
canExecute,
emitLastResult,
emitsLastValueToNewSubscriptions || emitInitialCommandResult,
emitInitialCommandResult,
initialLastResult);
}