RadioPickerFormField constructor

RadioPickerFormField({
  1. required FormFieldSetter<RadioItem> onSaved,
  2. required List<RadioItem> items,
  3. void onChanged(
    1. RadioItem value
    )?,
  4. RadioItem? initialValue,
  5. Key? key,
})

Implementation

RadioPickerFormField({
  required FormFieldSetter<RadioItem> super.onSaved,
  required List<RadioItem> items,
  void Function(RadioItem value)? onChanged,
  super.initialValue,
  super.key,
}) : super(
        builder: (FormFieldState<RadioItem?> state) => RadioPicker(
          onChanged: (value) {
            onChanged?.call(value);

            state.didChange(value);
          },
          items: items,
          initialValue: initialValue,
        ),
      );