MenuButton class Null safety
Constructors
- MenuButton({required Widget text, VoidCallback? onTap, Widget? icon, MenuSerializableShortcut? shortcut, String? shortcutText, TextStyle shortcutStyle = const TextStyle(fontWeight: FontWeight.normal, color: Colors.grey)})
-
A MenuButton is displayed as a button in the menus and submenus.
const
Properties
- color → Color?
-
finalinherited
- endIndent → double?
-
finalinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- height → double?
-
finalinherited
- icon → Widget?
-
finalinherited
- indent → double?
-
finalinherited
-
finalinherited
- onTap → VoidCallback?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shortcut → MenuSerializableShortcut?
-
finalinherited
- shortcutStyle → TextStyle?
-
finalinherited
- shortcutText → String?
-
finalinherited
-
finalinherited
- text → Widget?
-
finalinherited
- thickness → double?
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited