dispose method

void dispose()

Dispose all state

Implementation

void dispose() {
  clear();
}