RadioGroupX<T> constructor

RadioGroupX<T>({
  1. required Iterable<LabelValue<T>> items,
  2. T? value,
  3. OnValue<T>? onChange,
  4. NotifyValue<T>? notifyValue,
  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

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);
}