GFRadioListTile<T> constructor

const GFRadioListTile<T>({
  1. Key? key,
  2. required T value,
  3. required T groupValue,
  4. required ValueChanged? 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. GFPosition position = GFPosition.end,
  13. Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.DARK),
  14. Widget? inactiveIcon,
  15. Color customBgColor = GFColors.SUCCESS,
  16. bool autofocus = false,
  17. FocusNode? focusNode,
  18. bool toggleable = false,
  19. String? titleText,
  20. String? subTitleText,
  21. Color? color,
  22. Widget? avatar,
  23. Widget? title,
  24. Widget? subTitle,
  25. Widget? description,
  26. Widget? icon,
  27. EdgeInsets padding = const EdgeInsets.all(8),
  28. EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  29. bool enabled = true,
  30. GestureTapCallback? onTap,
  31. GestureLongPressCallback? onLongPress,
  32. bool selected = false,
  33. Color? focusColor,
  34. Color? hoverColor,
})

GFRadioListTile is a list title of with GFRadio in it.

Implementation

const GFRadioListTile({
  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.position = GFPosition.end,
  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.titleText,
  this.subTitleText,
  this.color,
  this.avatar,
  this.title,
  this.subTitle,
  this.description,
  this.icon,
  this.padding = const EdgeInsets.all(8),
  this.margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  this.enabled = true,
  this.onTap,
  this.onLongPress,
  this.selected = false,
  this.focusColor,
  this.hoverColor,
}) : super(key: key);