FieldRadio class

A Material Design radio button.

Used to select between a number of mutually exclusive values. When one radio button in a group is selected, the other radio buttons in the group cease to be selected. The values are of type T, the type parameter of the Radio class. Enums are commonly used for this purpose.

The radio button itself does not maintain any state. Instead, selecting the radio invokes the onChanged callback, passing value as a parameter. If groupValue and value match, this radio will be selected. Most widgets will respond to onChanged by calling State.setState to update the radio button's groupValue.

Constructors

FieldRadio(String type, String? activeColor, bool? autofocus, String? fillColor, String? focusColor, String? focusNode, String? groupValue, String? hoverColor, String? materialTapTargetSize, String? mouseCursor, String? onChanged, String? overlayColor, double? splashRadius, bool? toggleable, String? value, String? visualDensity)

Properties

activeColor String?
final
autofocus bool?
final
fillColor String?
final
focusColor String?
final
focusNode String?
final
groupValue String?
final
hashCode int
The hash code for this object.
no setterinherited
hoverColor String?
final
materialTapTargetSize String?
final
mouseCursor String?
final
onChanged String?
final
overlayColor String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashRadius double?
final
toggleable bool?
final
type String
final
value String?
final
visualDensity String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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