copyWith method

ApplicationProperty copyWith({
  1. List<String>? allowedValues,
  2. String? defaultValue,
  3. String? desc,
  4. String? example,
  5. String? id,
  6. String? key,
  7. String? name,
  8. String? type,
  9. String? value,
})

Implementation

ApplicationProperty copyWith(
    {List<String>? allowedValues,
    String? defaultValue,
    String? desc,
    String? example,
    String? id,
    String? key,
    String? name,
    String? type,
    String? value}) {
  return ApplicationProperty(
    allowedValues: allowedValues ?? this.allowedValues,
    defaultValue: defaultValue ?? this.defaultValue,
    desc: desc ?? this.desc,
    example: example ?? this.example,
    id: id ?? this.id,
    key: key ?? this.key,
    name: name ?? this.name,
    type: type ?? this.type,
    value: value ?? this.value,
  );
}