RadioGroupX<T> constructor
RadioGroupX<T> ({
- required Iterable<
LabelValue< items,T> > - T? value,
- OnValue<
T> ? onChange, - NotifyValue<
T> ? notifyValue, - Axis direction = Axis.horizontal,
- WrapAlignment alignment = WrapAlignment.start,
- WrapAlignment runAlignment = WrapAlignment.start,
- WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
- double spacing = 0,
- double runSpacing = 0,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- Clip clipBehavior = Clip.none,
- MouseCursor? mouseCursor,
- bool toggleable = false,
- Color? activeColor,
- WidgetStateProperty<
Color?> ? fillColor, - Color? focusColor,
- Color? hoverColor,
- WidgetStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- bool autofocus = false,
Implementation
RadioGroupX({
required this.items,
T? value,
this.onChange,
NotifyValue<T>? notifyValue,
// this.notifier,
Axis direction = Axis.horizontal,
WrapAlignment alignment = WrapAlignment.start,
WrapAlignment runAlignment = WrapAlignment.start,
WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
double spacing = 0,
double runSpacing = 0,
TextDirection? textDirection,
VerticalDirection verticalDirection = VerticalDirection.down,
Clip clipBehavior = Clip.none,
MouseCursor? mouseCursor,
bool toggleable = false,
Color? activeColor,
WidgetStateProperty<Color?>? fillColor,
Color? focusColor,
Color? hoverColor,
WidgetStateProperty<Color?>? overlayColor,
double? splashRadius,
MaterialTapTargetSize? materialTapTargetSize,
VisualDensity? visualDensity,
FocusNode? focusNode,
bool autofocus = false,
}) : _clipBehavior = clipBehavior,
_verticalDirection = verticalDirection,
_textDirection = textDirection,
_crossAxisAlignment = crossAxisAlignment,
_spacing = spacing,
_runSpacing = runSpacing,
_runAlignment = runAlignment,
_alignment = alignment,
_direction = direction,
_autofocus = autofocus,
_focusNode = focusNode,
_visualDensity = visualDensity,
_materialTapTargetSize = materialTapTargetSize,
_splashRadius = splashRadius,
_overlayColor = overlayColor,
_hoverColor = hoverColor,
_focusColor = focusColor,
_fillColor = fillColor,
_activeColor = activeColor,
_toggleable = toggleable,
_mouseCursor = mouseCursor,
assert(notifyValue != null || value != null),
this.notifyValue = notifyValue ?? NotifyValue(value: value as T),
super() {
this.notifyValue.add(this._onChangedOut);
}