copyWith method
ModelConfig
copyWith({
- String? id,
- String? name,
- String? description,
- ConfigType? type,
- ConfigValue? value,
Implementation
ModelConfig copyWith({
String? id,
String? name,
String? description,
ConfigType? type,
ConfigValue? value,
}) {
return ModelConfig(
id: id ?? this.id,
name: name ?? this.name,
description: description ?? this.description,
type: type ?? this.type,
value: value ?? this.value,
);
}