toColor

fun String.toColor(): Color?

Turn a hex color code into a Color

Return

a Color or null if you don't provide a proper hex code