clearState method

void clearState()

this method will be called when updateState or dispose

Implementation

void clearState() {
  indexTreeSet.clear();
  _widgets.clear();
}