FormComponent<T extends DataEntity> constructor

FormComponent<T extends DataEntity>({
  1. required String property,
  2. required T data,
  3. FormComponentOptions options = const FormComponentOptions(),
  4. bool required = false,
  5. required GridField field,
  6. String? type,
  7. bool enabled = true,
})

Creates a new FormComponent

Implementation

FormComponent({
  required this.property,
  required this.data,
  this.options = const FormComponentOptions(),
  this.required = false,
  required this.field,
  String? type,
  this.enabled = true,
}) : type = type ?? field.type.name;