he user and is the user's
primary locale (the locale the device UI is displayed in)</p>
<p>This is equivalent to <code>locales.first</code> and will provide an empty non-null locale
if the <a href="dart-ui/Window/locales.html">locales</a> list has not been set or is empty.</p>
        </section>
                <section class="summary source-code" id="source">
          <h2><span>Implementation</span></h2>
          <pre class="language-dart"><code class="language-dart">Locale get locale {
  if (_locales !=