DynamicField constructor

DynamicField({
  1. required String name,
  2. String? id,
  3. bool showInList = false,
  4. bool isRequired = false,
  5. int sort = 0,
  6. FormFieldValidator<Object>? validator,
  7. String? contentIcon,
  8. Color? contentColor,
  9. FieldType type = FieldType.dynamicField,
})

Implementation

DynamicField({
  required super.name,
  String? id,
  super.showInList,
  super.isRequired,
  super.sort,
  super.validator,
  this.contentIcon,
  this.contentColor,
  super.type = FieldType.dynamicField,
}) : super(id: id ?? toSnakeCase(name));