dispose method

void dispose()

Disposes all instances related the controller(e.g. TouchRippleEffect).

Implementation

void dispose() {
  _states.toList().forEach((state) => state.dispose());
  _stateMap.forEach((_, state) => state.dispose());
  _stateMap.clear();
}