Field.chips constructor
Field.chips(
- String key, {
- String? label,
- dynamic value,
- FormValidator? validator,
- bool autofocus = false,
- String? dummyData,
- Widget? header,
- TextStyle? titleStyle,
- bool? readOnly,
- required FormCollection options,
- dynamic onChanged(
- dynamic value
- 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);
}