dispose method

  1. @override
void dispose()
override

Cancel all the timers. Dispose of the widget.

Implementation

@override
void dispose() {
  super.dispose();
  for (final timer in _timers) {
    timer?.cancel();
  }
  for (final list in [_commands, _running, _timers, _intervals]) {
    list.clear();
  }
}