StringFS extension

provides extensions for String

on

Methods

toColor() Color?

Available on String, provided by the StringFS extension

allows to convert a hex string to Color. Returns null if unable to convert. 3 digit hex codes are also supported.