dispose method
void
dispose()
Call this method to dispose the channel client.
Implementation
void dispose() {
client.state.removeChannel('$cid');
state?.dispose();
_keyStrokeHandler.cancel();
}
Call this method to dispose the channel client.
void dispose() {
client.state.removeChannel('$cid');
state?.dispose();
_keyStrokeHandler.cancel();
}