copyWith method

ModelConfig copyWith({
  1. String? id,
  2. String? name,
  3. String? description,
  4. ConfigType? type,
  5. 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,
  );
}