dispose method

void dispose()

Implementation

void dispose() {
  for (final T state in states.values) {
    state.dispose();
  }
}