NECheckableMenuItem class
包含checked和uncheck两个状态的菜单项,初始时菜单项为uncheck状态, 点击后可切换至checked状态,如此反复。通过菜单项点击回调方法返回值控制是否进行状态迁移。 如果方法返回true,则会进行状态转移,否则保持当前状态不变。
- Inheritance
-
- Object
- NEMeetingMenuItem
- NECheckableMenuItem
Constructors
- NECheckableMenuItem({required int itemId, required NEMenuVisibility visibility, required NEMenuItemInfo uncheckStateItem, required NEMenuItemInfo checkedStateItem})
-
const
Properties
- checkedStateItem → NEMenuItemInfo
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
no setteroverride
- itemId → int
-
菜单项ID, 从0-99为预留Id,自定义注入菜单Id请使用100以上
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uncheckStateItem → NEMenuItemInfo
-
final
- visibility → NEMenuVisibility
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited