NyFormChip constructor

NyFormChip({
  1. Key? key,
  2. required String name,
  3. required List<String> options,
  4. String? selectedValue,
  5. dynamic onChanged(
    1. dynamic value
    )?,
})

Creates a NyFormChip widget

Implementation

NyFormChip(
    {super.key,
    required String name,
    required List<String> options,
    String? selectedValue,
    this.onChanged})
    : field = Field(name, value: selectedValue)
        ..cast = FormCast.chips(options: options);