JsonRadioBuilderModel class

Creates a Material Design radio button.

This widget typically has a RadioGroup ancestor, which takes in a RadioGroup.groupValue, and the Radio under it with matching value will be selected.

The value is required.

Inheritance

Constructors

JsonRadioBuilderModel(Map<String, dynamic> args, {Color? activeColor, bool autofocus = false, WidgetStateProperty<Color?>? backgroundColor, bool? enabled, WidgetStateProperty<Color?>? fillColor, Color? focusColor, FocusNode? focusNode, RadioGroupRegistry? groupRegistry, dynamic groupValue, Color? hoverColor, WidgetStateProperty<double?>? innerRadius, MaterialTapTargetSize? materialTapTargetSize, MouseCursor? mouseCursor, void onChanged(dynamic)?, WidgetStateProperty<Color?>? overlayColor, BorderSide? side, double? splashRadius, bool toggleable = false, required dynamic value, VisualDensity? visualDensity})
const

Properties

activeColor → Color?
The color to use when this radio button is selected.
final
args → Map<String, dynamic>
finalinherited
autofocus → bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final
backgroundColor → WidgetStateProperty<Color?>?
The color of the background of the radio button, in all WidgetStates.
final
enabled → bool?
Whether this widget is interactive.
final
fillColor → WidgetStateProperty<Color?>?
The color that fills the radio button, in all WidgetStates.
final
focusColor → Color?
The color for the radio's Material when it has the input focus.
final
focusNode → FocusNode?
An optional focus node to use as the focus node for this widget.
final
groupRegistry → RadioGroupRegistry?
The registry this radio registers to.
final
groupValue → dynamic
The currently selected value for a group of radio buttons.
final
hashCode → int
The hash code for this object.
no setterinherited
hoverColor → Color?
The color for the radio's Material when a pointer is hovering over it.
final
innerRadius → WidgetStateProperty<double?>?
The radius of the inner circle of the radio button, in all WidgetStates.
final
materialTapTargetSize → MaterialTapTargetSize?
Configures the minimum size of the tap target.
final
mouseCursor → MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
onChanged → void Function(dynamic)?
Called when the user selects this radio button.
final
overlayColor → WidgetStateProperty<Color?>?
The color for the radio's Material.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
side → BorderSide?
The side for the circular border of the radio button, in all WidgetStates.
final
splashRadius → double?
The splash radius of the circular Material ink response.
final
toggleable → bool
Set to true if this radio button is allowed to be returned to an indeterminate state by selecting it again when selected.
final
value → dynamic
The value represented by this radio button.
final
visualDensity → VisualDensity?
Defines how compact the radio's layout will be.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Abstract function that concrete classes must implement. This must encode the internal data model to a JSON compatible representation.
override
toString() → String
Returns the string encoded JSON representation for this class. This will remove all null values and empty collections from the returned string.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) → JsonRadioBuilderModel
maybeFromDynamic(dynamic map, {Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry}) → JsonRadioBuilderModel?