MenuRadio<T> constructor

const MenuRadio<T>({
  1. Key? key,
  2. required T value,
  3. required Widget child,
  4. Widget? trailing,
  5. FocusNode? focusNode,
  6. bool enabled = true,
  7. bool autoClose = true,
})

Creates a radio button menu item.

Must be a child of MenuRadioGroup.

Parameters:

  • value (T, required): Value for this option
  • child (Widget, required): Display content
  • trailing (Widget?): Optional trailing widget
  • focusNode (FocusNode?): Focus node for navigation
  • enabled (bool): Whether enabled, defaults to true
  • autoClose (bool): Whether to auto-close menu, defaults to true

Implementation

const MenuRadio({
  super.key,
  required this.value,
  required this.child,
  this.trailing,
  this.focusNode,
  this.enabled = true,
  this.autoClose = true,
});