NEMenuItemInfo class

菜单项某一状态下的描述信息,包括菜单文本和图标。

Constructors

NEMenuItemInfo(String text, {String? icon, String? platformPackage})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hasIcon bool
no setter
hasPlatformPackage bool
no setter
icon String?
Android平台下该字段为图片资源ID; iOS平台下该字段为资源名称; 如果为'0',则说明该菜单未设置ICON
final
isValid bool
no setter
platformPackage String?
flutter平台下,如果传入该字段,则会从flutter平台加载资源
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
final

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

Constants

maxTextLength → const int