getColor

Retrieves the Color that corresponds to this DynamicColor based on the provided DynamicScheme.

This function returns a Color that reflects how this dynamic color should appear according to the given scheme, which specifies user interface conditions such as dark mode, light mode, or desired contrast levels.

Return

The Color that represents this DynamicColor as specified by the dynamicScheme.

Parameters

dynamicScheme

The DynamicScheme that defines the user interface conditions, including whether the mode is dark or light, and the desired contrast level.