dispose method

void dispose()

If you don't need a command any longer it is a good practise to dispose it to make sure all stream subscriptions are cancelled to prevent memory leaks

Implementation

void dispose() {
  _commandResultsSubject.close();
  _isExecutingSubject.close();
  _canExecuteSubject.close();
  _thrownExceptionsSubject.close();
  _resultsSubject.close();
}