GFRadio<T> constructor
const
GFRadio<T> ({
- Key? key,
- required T value,
- required T groupValue,
- required ValueChanged<
T> ? onChanged, - double size = GFSize.SMALL,
- GFRadioType type = GFRadioType.basic,
- Color radioColor = GFColors.SUCCESS,
- Color activeBgColor = GFColors.WHITE,
- Color inactiveBgColor = GFColors.WHITE,
- Color activeBorderColor = GFColors.DARK,
- Color inactiveBorderColor = GFColors.DARK,
- Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.DARK),
- Widget? inactiveIcon,
- Color customBgColor = GFColors.SUCCESS,
- bool autofocus = false,
- FocusNode? focusNode,
- bool toggleable = false,
- 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);