NyFormPicker constructor

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

Creates a NyFormPicker widget

Implementation

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