dispose method

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

Frees all the resources associated to this object.

This marks the object as no longer usable and will make all methods/properties besides mounted inaccessible.

Implementation

@override
@mustCallSuper
void dispose() {
  subscriptionHolder.dispose();

  super.dispose();
}