copyWith method
FieldMetadata
copyWith(
{ - bool? required,
- Map<String, dynamic>? schema,
- String? name,
- String? key,
- String? autoCompleteUrl,
- bool? hasDefaultValue,
- List<String>? operations,
- List? allowedValues,
- dynamic defaultValue,
- 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,
);
}