flutter widget destructor code example
Example: flutter widget destructor
//In a state of a statefull widget
void dispose() {
_bloc.dispose();
super.dispose();
}
//In a state of a statefull widget
void dispose() {
_bloc.dispose();
super.dispose();
}