MiuixThemeColorSpec enum

Material 配色规范版本。对应 Kotlin ThemeColorSpec

说明:当前依赖的 material_color_utilities 0.13.0 仅实现 SPEC_2021。 该枚举保留以兼容原版 API 与降级逻辑;spec2025 在受支持的 palette 上 语义等价请求 2025,但底层实际按 2021 生成(与原版「不支持则降级」路径一致)。

Inheritance
Available extensions

Values

spec2021 → const MiuixThemeColorSpec
spec2025 → const MiuixThemeColorSpec

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<MiuixThemeColorSpec>
A constant List of the values in this enum, in order of their declaration.