dispose method

  1. @override
  2. @mustCallSuper
void dispose()
override

Discards any resources used by the viewmodel and also disposes all subscriptions in compositeSubscription.

After this is called, the object is not in a usable state and should be discarded.

Implementation

@override
@mustCallSuper
void dispose() {
  compositeSubscription.dispose();
  super.dispose();
}