dispose method

void dispose()

Implementation

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