dispose method

void dispose()

Clears listeners owned by this resource.

Implementation

void dispose() {
  state.dispose();
}