d as compile-time
constants are canonicalized, as all other constant object creations.</p>
<pre class="language-dart"><code class="language-dart">assert(new Symbol("foo") == new Symbol("foo"));
assert(identical(const Symbol("foo"), const Symbol("foo")));
</code></pre>
<p>If <code>name</code> is a single identifier that does not start with an underscore,
or it is a qualified identifier,
or it is an operator name different from <code>unary-</code>,
then the result of <code>const Symbol(name)</code> is the sam