RadioMenuButton<T> constructor

const RadioMenuButton<T>({
  1. Key? key,
  2. required T value,
  3. required T? groupValue,
  4. required ValueChanged<T?>? onChanged,
  5. bool toggleable = false,
  6. ValueChanged<bool>? onHover,
  7. ValueChanged<bool>? onFocusChange,
  8. FocusNode? focusNode,
  9. MenuSerializableShortcut? shortcut,
  10. ButtonStyle? style,
  11. MaterialStatesController? statesController,
  12. Clip clipBehavior = Clip.none,
  13. Widget? trailingIcon,
  14. bool closeOnActivate = true,
  15. required Widget? child,
})

Creates a const RadioMenuButton.

The child attribute is required.

Implementation

const RadioMenuButton({
  super.key,
  required this.value,
  required this.groupValue,
  required this.onChanged,
  this.toggleable = false,
  this.onHover,
  this.onFocusChange,
  this.focusNode,
  this.shortcut,
  this.style,
  this.statesController,
  this.clipBehavior = Clip.none,
  this.trailingIcon,
  this.closeOnActivate = true,
  required this.child,
});