clearServerAddress method
Clear server action.
Implementation
void clearServerAddress() {
_controller.add(null);
messages = [];
_channel?.sink.close();
_channel = null;
}
Clear server action.
void clearServerAddress() {
_controller.add(null);
messages = [];
_channel?.sink.close();
_channel = null;
}