FieldMetadata constructor

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

Implementation

FieldMetadata(
    {required this.required,
    required this.schema,
    required this.name,
    required this.key,
    this.autoCompleteUrl,
    bool? hasDefaultValue,
    required this.operations,
    List<dynamic>? allowedValues,
    this.defaultValue,
    this.configuration})
    : hasDefaultValue = hasDefaultValue ?? false,
      allowedValues = allowedValues ?? [];