parseColor

fun String?.parseColor(): ERROR CLASS: Symbol not found for androidx.compose.ui.graphics.Color

Parse this String to a color code to be used in compose. Color code must either a). begin with pound sign ('#') and should be of 6 valid characters or b). be equal to 'primaryColor', 'primaryVariantColor' or 'errorColor'