copyWith method

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

Implementation

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