PopupMenuOption class
弹出菜单选项
用于 ComPopupMenu.options 构造函数的选项配置
Constructors
- PopupMenuOption.new({required String text, required VoidCallback onTap, IconData? icon, Color? iconColor, TextStyle? textStyle})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
选项图标
final
- iconColor → Color?
-
图标颜色
final
- onTap → VoidCallback
-
点击回调
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
选项文本
final
- textStyle → TextStyle?
-
文本样式
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