FSelectGroupItem<T>.radio constructor

FSelectGroupItem<T>.radio({
  1. required T value,
  2. FRadioSelectGroupStyle? style,
  3. Widget? label,
  4. Widget? description,
  5. Widget? error,
  6. String? semanticLabel,
  7. bool enabled,
  8. bool autofocus,
  9. FocusNode? focusNode,
  10. ValueChanged<bool>? onFocusChange,
  11. Key? key,
})

Creates a radio button wrapped in a FSelectGroupItem.

Implementation

// TODO: Making this const causes a false positive in the list_element_type_not_assignable lint when declared
//       in a const list inside FSelectGroup. I still can't replicate this issue in other cases.
// ignore: prefer_const_constructors_in_immutables
factory FSelectGroupItem.radio({
  required T value,
  FRadioSelectGroupStyle? style,
  Widget? label,
  Widget? description,
  Widget? error,
  String? semanticLabel,
  bool enabled,
  bool autofocus,
  FocusNode? focusNode,
  ValueChanged<bool>? onFocusChange,
  Key? key,
}) = _Radio;