RadioButtonFieldState<T> constructor

RadioButtonFieldState<T>(
  1. T value, {
  2. required String label,
})

Creates a new instance of RadioButtonFieldState.

  • value: The initial value of the radio button field.
  • label: The label or name of the radio button form field (required).

Implementation

RadioButtonFieldState(
  T value, {
  required String label,
}) : super(value: value, label: label, rules: []);