getOnPrimary

abstract fun getOnPrimary(): Color?

获取主色上使用的颜色(OnPrimary)。用于显示在主色之上的文本和图标。

Return

当前的 Color,未定义时返回 null