updateConnection method

void updateConnection({
  1. String? host,
  2. int? port,
  3. String? path,
})

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();
}