dispose method
disposes of the model releasing resources and removing bindings
Implementation
@override
void dispose() {
socket?.dispose();
socket = null;
super.dispose();
}
disposes of the model releasing resources and removing bindings
@override
void dispose() {
socket?.dispose();
socket = null;
super.dispose();
}