copyWith method

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

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