updateConnection method
Updates connection parameters and notifies listeners
Implementation
void updateConnection({
final String? host,
final int? port,
final String? path,
}) {
if (host != null) this.host = host;
if (port != null) this.port = port;
if (path != null) this.path = path;
notifyListeners();
}