library / org.akop.kotx.ext.basic / kotlin.String / toColorInt

toColorInt

fun String.toColorInt(): Int

Uses Color.parseColor to convert string representation of a color (such as "#cedefa") to integer representation.