copyWith method

Environment copyWith({
  1. String? id,
  2. String? name,
  3. String? baseUrl,
  4. String? socketUrl,
  5. String? description,
  6. Map<String, dynamic>? config,
  7. bool? isActive,
})

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,
  );
}