RadioGroupB constructor

RadioGroupB({
  1. required Iterable<int> items,
  2. required OnLabel<int> onLabel,
  3. int? value,
  4. Binder<int?>? binder,
  5. Axis direction = Axis.horizontal,
  6. WrapAlignment alignment = WrapAlignment.start,
  7. WrapAlignment runAlignment = WrapAlignment.start,
  8. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start,
  9. double spacing = 0,
  10. double runSpacing = 0,
  11. TextDirection? textDirection,
  12. VerticalDirection verticalDirection = VerticalDirection.down,
  13. Clip clipBehavior = Clip.none,
  14. MouseCursor? mouseCursor,
  15. bool toggleable = false,
  16. Color? activeColor,
  17. WidgetStateProperty<Color?>? fillColor,
  18. Color? focusColor,
  19. Color? hoverColor,
  20. WidgetStateProperty<Color?>? overlayColor,
  21. double? splashRadius,
  22. MaterialTapTargetSize? materialTapTargetSize,
  23. VisualDensity? visualDensity,
  24. FocusNode? focusNode,
  25. 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));
}