copyWith method

AddedProxy copyWith({
  1. int? id,
  2. int? lastUsedDate,
  3. bool? isEnabled,
  4. String? comment,
  5. Proxy? proxy,
  6. dynamic extra,
  7. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

AddedProxy copyWith({
  int? id,
  int? lastUsedDate,
  bool? isEnabled,
  String? comment,
  Proxy? proxy,
  dynamic extra,
  int? clientId,
}) => AddedProxy(
  id: id ?? this.id,
  lastUsedDate: lastUsedDate ?? this.lastUsedDate,
  isEnabled: isEnabled ?? this.isEnabled,
  comment: comment ?? this.comment,
  proxy: proxy ?? this.proxy,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);