RadioMenuFlyoutItem<T extends Object> class
Represents a menu item that is mutually exclusive with other radio menu items in its group
See also:
- MenuFlyout, which displays a list of commands or options
- MenuFlyoutItem, a single item in the list of items
- MenuFlyoutSeparator, which represents a horizontal line that separates items in a MenuFlyout.
- MenuFlyoutSubItem, which represents a menu item that displays a sub-menu in a MenuFlyout
- ToggleMenuFlyoutItem, which represents a menu item that a user can change between two states, checked or unchecked
- Inheritance
-
- Object
- MenuFlyoutItemBase
- MenuFlyoutItem
- RadioMenuFlyoutItem
Constructors
-
RadioMenuFlyoutItem.new({required Widget text, Widget? trailing, required T value, required T groupValue, required ValueChanged<
T> ? onChanged, bool closeAfterClick = true}) - Creates a radio menu item.
Properties
- closeAfterClick → bool
-
Whether to close the menu after the item is clicked.
finalinherited
- focusNode → FocusNode?
-
The focus node of the item.
finalinherited
- groupValue → T
-
The value of the group.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- leading → Widget?
-
Displayed before text.
finalinherited
-
onChanged
→ ValueChanged<
T> ? -
Called when the value of the item changes.
final
- onLongPress → VoidCallback?
-
Called when the item is long pressed.
finalinherited
- onPressed → VoidCallback?
-
Called when the item is pressed.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether this item is selected or not.
finalinherited
- text → Widget
-
The text displayed in this item.
finalinherited
- trailing → Widget?
-
Displayed after text.
finalinherited
- value → T
-
The value of the item.
final
Methods
-
build(
BuildContext context) → Widget -
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited