getSurfaceVariant

abstract fun getSurfaceVariant(): Color?

获取表面变体颜色(SurfaceVariant)。getSurface 的另一种选择,用于区分不同的表面区域。

Return

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