1. override
void dispose()

Release the resources used by this object. The object is no longer usable after this method is called.

Source

@override
void dispose() {
  _ticker.dispose();
  super.dispose();
}