dispose method

  1. @override
void dispose()
override

Dispose of the widget.

Implementation

@override
void dispose() {
  super.dispose();
  for (final timer in timers.values) {
    timer.cancel();
  }
  timers.clear();
}