dispose method

void dispose ()

Disposing method that clears all previously created tickers.

Implementation

void dispose() {
  _intervals.clear();
  assert(() {
    if (_tickers != null) {
      for (final ticker in _tickers) {
        if (ticker.isActive) {
          throw '$this was disposed with an active Ticker.';
        }
      }
    }
    return true;
  }());
}