RxCommandAsync<TParam, TResult> constructor
RxCommandAsync<TParam, TResult> ()
Implementation
factory RxCommandAsync(
AsyncFunc1<TParam, TResult>? func,
Future<TResult> Function()? funcNoParam,
Stream<bool?>? registration,
bool emitInitialCommandResult,
bool emitLastResult,
bool emitsLastValueToNewSubscriptions,
TResult? initialLastResult,
bool noResult,
String? debugName,
bool noParamValue) {
return RxCommandAsync._(
func,
funcNoParam,
emitsLastValueToNewSubscriptions || emitInitialCommandResult
? BehaviorSubject<TResult>()
: PublishSubject<TResult>(),
registration,
emitLastResult,
emitsLastValueToNewSubscriptions || emitInitialCommandResult,
emitInitialCommandResult,
initialLastResult,
noResult,
debugName,
noParamValue);
}