NyFormRadio constructor

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

Creates a NyFormRadio widget

Implementation

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