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