send method Null safety
- String data
Implementation
void send(String data) {
logger.i('Send command \n' + data);
try {
_socket?.sink.add(data);
} catch (e) {
throw WebSocketError(message: e.toString());
}
}
void send(String data) {
logger.i('Send command \n' + data);
try {
_socket?.sink.add(data);
} catch (e) {
throw WebSocketError(message: e.toString());
}
}