NiceFormFieldDef constructor

const NiceFormFieldDef({
  1. required String key,
  2. required NiceFormFieldType type,
  3. String? label,
  4. String? hint,
  5. bool required = false,
  6. bool readOnly = false,
  7. dynamic defaultValue,
  8. List<String>? options,
  9. int flex = 1,
  10. List<String Function(dynamic value)>? validators,
})

Implementation

const NiceFormFieldDef({
  required this.key,
  required this.type,
  this.label,
  this.hint,
  this.required = false,
  this.readOnly = false,
  this.defaultValue,
  this.options,
  this.flex = 1,
  this.validators,
});