dispose method

  1. @override
void dispose()
override

Function used in disposing current component state, and disposing of any broadcast streams used in the process.

Implementation

@override
void dispose() {
  _stateController.close();
}