GFRadio<T> class
Constructors
-
GFRadio({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.
const
Properties
-
activeBgColor
→ Color
-
type of Color used to change the backgroundColor of the active radio button
final
-
activeBorderColor
→ Color
-
type of Color used to change the border color of the active radio button
final
-
activeIcon
→ Widget
-
type of Widget used to change the radio button's active icon
final
-
autofocus
→ bool
-
on true state this widget will be selected as the initial focus
when no other node in its scope is currently focused
final
-
customBgColor
→ Color
-
type of Color used to change the background color of the custom active radio button only
final
-
focusNode
→ FocusNode?
-
an optional focus node to use as the focus node for this widget.
final
-
groupValue
→ T
-
The currently selected value for a group of radio buttons. Radio button is considered selected if its value matches the
groupValue.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
inactiveBgColor
→ Color
-
type of Color used to change the backgroundColor of the inactive radio button
final
-
inactiveBorderColor
→ Color
-
type of Color used to change the border color of the inactive radio button
final
-
inactiveIcon
→ Widget?
-
type of Widget used to change the radio button's inactive icon
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChanged
→ ValueChanged<T>?
-
Called when the user checks or unchecks the radio button
final
-
radioColor
→ Color
-
type pf Color used to change the checkcolor when the radio button is active
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
size
→ double
-
type of double which is GFSize ie, small, medium and large and can use any double value
final
-
toggleable
→ bool
-
sets the radio value
final
-
type
→ GFRadioType
-
type of GFRadioType which is of four type is basic, sqaure, circular and custom
final
-
validator
→ FormFieldValidator<T>?
-
An optional method that validates an input. Returns an error string to
display if the input is invalid, or null otherwise.
final
-
value
→ T
-
The value represented by this radio button.
final