copyWith method

FieldMetadata copyWith({
  1. bool? required,
  2. Map<String, dynamic>? schema,
  3. String? name,
  4. String? key,
  5. String? autoCompleteUrl,
  6. bool? hasDefaultValue,
  7. List<String>? operations,
  8. List? allowedValues,
  9. dynamic defaultValue,
  10. Map<String, dynamic>? configuration,
})

Implementation

FieldMetadata copyWith(
    {bool? required,
    Map<String, dynamic>? schema,
    String? name,
    String? key,
    String? autoCompleteUrl,
    bool? hasDefaultValue,
    List<String>? operations,
    List<dynamic>? allowedValues,
    dynamic defaultValue,
    Map<String, dynamic>? configuration}) {
  return FieldMetadata(
    required: required ?? this.required,
    schema: schema ?? this.schema,
    name: name ?? this.name,
    key: key ?? this.key,
    autoCompleteUrl: autoCompleteUrl ?? this.autoCompleteUrl,
    hasDefaultValue: hasDefaultValue ?? this.hasDefaultValue,
    operations: operations ?? this.operations,
    allowedValues: allowedValues ?? this.allowedValues,
    defaultValue: defaultValue ?? this.defaultValue,
    configuration: configuration ?? this.configuration,
  );
}