disposeState method

void disposeState(
  1. State<Component> state

Disposes current state, to make the Context null and unusable after the rendering is completely finished.

Exposed with the purpose to be overriden by Spinner and Progress components which dispose the context only when the done function is called.


void disposeState(State state) => state.dispose();