<divclass="content sourceset-dependent-content"data-active=""data-togglable=":docs:dokkaHtml/jsMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="value-of.html"><spanclass="token function">valueOf</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">value<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="index.html">ColorScheme</a></div><pclass="paragraph">Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)</p><h4class="">Throws</h4><divclass="table"data-togglable="Throws"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/jsMain"data-filterable-set=":docs:dokkaHtml/jsMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html"><span>Illegal</span><wbr></wbr><span>Argument</span><wbr></wbr><span><span>Exception</span></span></a></div></span></div><div><divclass="title"><pclass="paragraph">if this enum type has no constant with the specified name</p></div></div></div></div></div></div></div>