Field.chips constructor

Field.chips(
  1. String key, {
  2. String? label,
  3. dynamic value,
  4. FormValidator? validator,
  5. bool autofocus = false,
  6. String? dummyData,
  7. Widget? header,
  8. Widget? footer,
  9. TextStyle? titleStyle,
  10. bool? hidden = false,
  11. bool? readOnly,
  12. required FormCollection options,
  13. dynamic onChanged(
    1. dynamic value
    )?,
  14. FieldStyleChip? style,
})

Field.chips is a constructor that helps in managing chips fields

Implementation

Field.chips(
  this.key, {
  this.label,
  dynamic value,
  this.validator,
  this.autofocus = false,
  this.dummyData,
  this.header,
  this.footer,
  this.titleStyle,
  this.hidden = false,
  this.readOnly,
  required FormCollection options,
  Function(dynamic value)? onChanged,
  FieldStyleChip? style,
}) : style = style ?? FieldStyleChip(),
     _value = value {
  setOnChanged(onChanged);
  widget = NyFormChip.fromField(this, options: options);
}