dispose method
dynamic
dispose()
Disposes all instances related the controller(e.g. TouchRippleEffect).
Implementation
dispose() {
_states.toList().forEach((state) => state.dispose());
_stateMap.forEach((_, state) => state.dispose());
_stateMap.clear();
}