FdcMenuCheckAction class
A checkable menu action with optional custom child content.
checked controls the current check state; keepOpen allows toggle-style interactions without dismissing the surrounding menu.
- Inheritance
-
- Object
- FdcMenuEntry
- FdcMenuCheckAction
Constructors
- FdcMenuCheckAction({required String text, required bool checked, IconData? icon, String? shortcutText, Widget? child, bool keepOpen = false, bool enabled = true, VoidCallback? onPressed})
-
Creates a FdcMenuCheckAction.
const
Properties
- checked → bool
-
Whether the item is currently checked.
final
- child → Widget?
-
Child widget rendered by this configuration.
final
- enabled → bool
-
Whether this feature is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
Optional icon shown with the item.
final
- keepOpen → bool
-
Whether the menu should remain open after activation.
final
- onPressed → VoidCallback?
-
Callback invoked when the item is activated.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortcutText → String?
-
Optional shortcut hint shown next to the item.
final
- text → String
-
Text displayed to the user.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited