copyWith method

Proxy copyWith({
  1. int? id,
  2. String? server,
  3. int? port,
  4. int? lastUsedDate,
  5. bool? isEnabled,
  6. ProxyType? type,
  7. dynamic extra,
  8. int? clientId,
})

Implementation

Proxy copyWith({
  int? id,
  String? server,
  int? port,
  int? lastUsedDate,
  bool? isEnabled,
  ProxyType? type,
  dynamic extra,
  int? clientId,
}) => Proxy(
  id: id ?? this.id,
  server: server ?? this.server,
  port: port ?? this.port,
  lastUsedDate: lastUsedDate ?? this.lastUsedDate,
  isEnabled: isEnabled ?? this.isEnabled,
  type: type ?? this.type,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);