GFRadio<T> constructor

const GFRadio<T>({
  1. Key? key,
  2. required T value,
  3. required T groupValue,
  4. required ValueChanged<T>? onChanged,
  5. double size = GFSize.SMALL,
  6. GFRadioType type = GFRadioType.basic,
  7. Color radioColor = GFColors.SUCCESS,
  8. Color activeBgColor = GFColors.WHITE,
  9. Color inactiveBgColor = GFColors.WHITE,
  10. Color activeBorderColor = GFColors.DARK,
  11. Color inactiveBorderColor = GFColors.DARK,
  12. Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.DARK),
  13. Widget? inactiveIcon,
  14. Color customBgColor = GFColors.SUCCESS,
  15. bool autofocus = false,
  16. FocusNode? focusNode,
  17. bool toggleable = false,
  18. FormFieldValidator<T>? validator,
})

GFRadio is one type of selection indicator in a list of options.

Implementation

const GFRadio({
  Key? key,
  required this.value,
  required this.groupValue,
  required this.onChanged,
  this.size = GFSize.SMALL,
  this.type = GFRadioType.basic,
  this.radioColor = GFColors.SUCCESS,
  this.activeBgColor = GFColors.WHITE,
  this.inactiveBgColor = GFColors.WHITE,
  this.activeBorderColor = GFColors.DARK,
  this.inactiveBorderColor = GFColors.DARK,
  this.activeIcon = const Icon(
    Icons.check,
    size: 20,
    color: GFColors.DARK,
  ),
  this.inactiveIcon,
  this.customBgColor = GFColors.SUCCESS,
  this.autofocus = false,
  this.focusNode,
  this.toggleable = false,
  this.validator,
}) : super(key: key);