JsonRadio class

Inheritance

Constructors

JsonRadio({Map<String, dynamic> args = const {}, JsonWidgetRegistry? registry, 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})

Properties

activeColor Color?
The color to use when this radio button is selected.
final
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
hasProvidedId bool
finalinherited
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
jsonWidgetArgs → dynamic
finalinherited
jsonWidgetBuilder JsonWidgetBuilder Function()
finalinherited
jsonWidgetId String
finalinherited
jsonWidgetListenVariables Set<String>
finalinherited
jsonWidgetRegistry JsonWidgetRegistry
finalinherited
jsonWidgetType String
finalinherited
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

build({ChildWidgetBuilder? childBuilder, required BuildContext context, JsonWidgetRegistry? registry}) Widget
Convenience method that can build the widget this data object represents. This is the equilivant of calling: builder.build and passing this in as the data parameter.
inherited
copyWith({dynamic jsonWidgetArgs, JsonWidgetBuilder? jsonWidgetBuilder, Set<String>? jsonWidgetListenVariables, String? jsonWidgetId, JsonWidgetRegistry? jsonWidgetRegistry, String? jsonWidgetType}) JsonWidgetData
inherited
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.
inherited
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