title: What is the difference between "show" and "as" in an import statement?
body: <p>What is the difference between <code>show</code> and <code>as</code> in an import statement? </p>
  
  <p>For example, what's the difference between</p>
  
  <pre><code>import 'dart:convert' show JSON;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>import 'package:google_maps/google_maps.dart' as GoogleMap;
  </code></pre>
  
  <p>When do I use <code>show</code> and when should I use <code>as</code>?</p>
  
  <p>If I switch to <code>show GoogleMap</code> all references to <code>GoogleMap</code> (e.g. <code>GoogleMap.LatLng</code>) objects are reported as undefined.</p>