dispose method

void dispose()
override

Disposes resources of all children and this.

Implementation

void dispose() {
  _subscription.cancel();
  controller.dispose();
  super.dispose();
}