stringToIcon
external fun stringToIcon(value: String, validate: Boolean = definedExternally, allowSimpleName: Boolean = definedExternally, provider: String = definedExternally): IconifyIconName?
Convert a string such as mdi:home, @provider:mdi:home or mdi-home to an icon name object.
Return
the parsed name, or null if value cannot be parsed.
Parameters
validate
return null when the result is not a valid icon name.
allowSimpleName
allow names without a prefix, such as home.
provider
provider used when the string does not include one.