RxCommandSync<TParam, TResult> constructor
RxCommandSync<TParam, TResult> ()
Implementation
factory RxCommandSync(
Func1<TParam, TResult>? func,
TResult Function()? funcNoParam,
Stream<bool>? restriction,
bool emitInitialCommandResult,
bool emitLastResult,
bool emitsLastValueToNewSubscriptions,
TResult? initialLastResult,
bool noReturnValue,
String? debugName,
bool noParamValue,
) {
return RxCommandSync._(
func,
funcNoParam,
emitsLastValueToNewSubscriptions || emitInitialCommandResult
? BehaviorSubject<TResult>()
: PublishSubject<TResult>(),
restriction,
emitLastResult,
emitsLastValueToNewSubscriptions || emitInitialCommandResult,
emitInitialCommandResult,
initialLastResult,
noReturnValue,
debugName,
noParamValue,
);
}