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