SettingItemDefinition class
设置项纯元数据描述符
仅定义设置项的静态元数据(分组、场景排除、面板可见性), 不包含任何运行时构建逻辑。运行时的构建与可见性绑定由 SettingItemRegistry 负责。
Pure metadata descriptor for a setting item.
Defines only static metadata (grouping, scene exclusion, panel visibility) without any runtime build logic. Runtime build and visibility binding are handled by SettingItemRegistry.
Constructors
-
SettingItemDefinition({required String elementKey, required SettingItemGroup group, Set<
SceneType> excludedScenes = const {}, bool showInPortraitPanel = true, bool showInLandscapePanel = true}) -
创建设置项描述符
const
Properties
- elementKey → String
-
元素唯一标识 key,对应 SettingMenuElements 常量
final
-
excludedScenes
→ Set<
SceneType> -
排除的场景集合,在这些场景下该设置项不可见
final
- group → SettingItemGroup
-
竖屏设置面板中的分组归属
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showInLandscapePanel → bool
-
是否在横屏设置面板中显示
final
- showInPortraitPanel → bool
-
是否在竖屏设置面板中显示
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