RadioGroupB constructor
RadioGroupB({
- required Iterable<
int> items, - required OnLabel<
int> onLabel, - int? value,
- Binder<
int?> ? binder, - 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
RadioGroupB({
required this.items,
required this.onLabel,
int? value,
Binder<int?>? binder,
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,
}) : _value = value,
_binder = binder,
_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,
super() {
assert(!(_binder != null && value != null));
}