Radio<T> class
A single choice in a group: selected when value equals groupValue
((o) selected, ( ) not). Enter or Space selects it when focused, as
does a click, calling onChanged with this radio's value. Give every
radio in the group the same groupValue and onChanged. Passing null
disables it.
- Inheritance
-
- Object
- Widget
- StatelessWidget
- Radio
- Available extensions
Constructors
Properties
- autofocus → bool
-
Whether this radio requests focus when mounted.
final
- focusNode → FocusNode?
-
Optional externally owned focus node used for activation.
final
- groupValue → T?
-
Controlled group selection; equality with value selects this radio.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- label → String?
-
Optional visible text and semantic label beside the indicator.
final
- onChanged → void Function(T value)?
-
Called with value on activation; null disables this radio.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CellStyle?
-
Base styling, plus optional hover, focus, selected, and disabled state
entries from CellStyle.interactive.
final
- value → T
-
Value emitted when this radio is activated.
final
Methods
-
animate(
{Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate -
Available on Widget, provided by the AnimateExtension extension
Starts an Animate chain over this widget.duration/curveapply to the whole chain. With notriggerit plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates the Element that will mount this widget into the tree.
inherited
-
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