copyWith method
Create a copy of this environment with updated values
Implementation
Environment copyWith({
String? name,
String? baseUrl,
Map<String, dynamic>? config,
bool? isDefault,
String? description,
}) {
return Environment(
name: name ?? this.name,
baseUrl: baseUrl ?? this.baseUrl,
config: config ?? this.config,
isDefault: isDefault ?? this.isDefault,
description: description ?? this.description,
);
}