CommandEvents<TParam, TResult> constructor

CommandEvents<TParam, TResult>(
  1. RxCommand<TParam, TResult> command
)

Implementation

CommandEvents(this.command) {
  values = command;
  results = command.results;
  executing = command.isExecuting;
  exceptions = command.thrownExceptions;
  canExecute = command.canExecute;

  _subscription = exceptions.listen((error) {
    // ignore: avoid_print
    print(error);
  });
}