copyWith method

WebProxyCarrier copyWith({
  1. int? id,
  2. int? proxyId,
  3. String? url,
  4. String? origin,
  5. String? pathPrefix,
  6. String? bridgeObjectName,
  7. bool? isTemporary,
})

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

Implementation

WebProxyCarrier copyWith({
  int? id,
  int? proxyId,
  String? url,
  String? origin,
  String? pathPrefix,
  String? bridgeObjectName,
  bool? isTemporary,
}) => WebProxyCarrier(
  id: id ?? this.id,
  proxyId: proxyId ?? this.proxyId,
  url: url ?? this.url,
  origin: origin ?? this.origin,
  pathPrefix: pathPrefix ?? this.pathPrefix,
  bridgeObjectName: bridgeObjectName ?? this.bridgeObjectName,
  isTemporary: isTemporary ?? this.isTemporary,
);