StructuredField constructor

StructuredField({
  1. required String name,
  2. required List<Field> structure,
  3. bool singleObject = false,
  4. String? id,
  5. bool showInList = false,
  6. bool isRequired = false,
  7. int sort = 0,
  8. FormFieldValidator<Object>? validator,
  9. String? contentIcon,
  10. Color? contentColor,
  11. FieldType type = FieldType.structuredField,
})

Implementation

StructuredField({
  required super.name,
  required this.structure,
  this.singleObject = false,
  String? id,
  super.showInList,
  super.isRequired,
  super.sort,
  super.validator,
  super.contentIcon,
  super.contentColor,
  super.type = FieldType.structuredField,
}) : super(id: id ?? toSnakeCase(name));