copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
EditProxy copyWith({
int? proxyId,
String? server,
int? port,
bool? enable,
ProxyType? type,
}) =>
EditProxy(
proxyId: proxyId ?? this.proxyId,
server: server ?? this.server,
port: port ?? this.port,
enable: enable ?? this.enable,
type: type ?? this.type,
);