AurisRadio<T> class
A single-select radio with a chamfered indicator — Material's Radio is circular with no shape hook, so this is the geometric replacement (§spec:custom-widgets). The selected state shows a filled chamfered pip inside a chamfered box; an empty box otherwise.
Selection is group-based like Radio: the control is selected when value equals groupValue, and tapping (or space/enter while focused) reports value to onChanged. A null onChanged disables the control (opacity 0.5, no interaction); an enabled control shows a gold keyboard-focus ring. All colors / bevel / glow resolve from the AurisScheme.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AurisRadio
Constructors
-
AurisRadio({Key? key, required T value, required T? groupValue, required ValueChanged<
T> ? onChanged, String? label, FocusNode? focusNode, bool autofocus = false}) -
Creates a chamfered radio.
const
Properties
- autofocus → bool
-
Whether the control should autofocus.
final
- focusNode → FocusNode?
-
An optional external focus node.
final
- groupValue → T?
-
The currently selected value of the group.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
Optional label shown after the indicator.
final
-
onChanged
→ ValueChanged<
T> ? -
Called with value when this radio is chosen. Null disables it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The value this radio represents.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AurisRadio< T> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited