copyWith method
Implementation
KeyValue copyWith({
String? name,
List<String>? comments,
String? type,
Object? value,
bool? nullable,
}) {
return KeyValue(
name: name ?? this.name,
type: type ?? this.type,
value: value ?? this.value,
comments: comments ?? List.from(this.comments),
nullable: nullable ?? this.nullable,
);
}