e><code class="prettyprint lang-dart">/**
 * A `Point` is only equal to another `Point` with the same coordinates.
 *
 * This point is equal to `other` if, and only if,
 * `other` is a `Point` with
 * [x] equal to `other.x` and [y] equal to `other.y`.
 */
bool operator ==(other) {
  if (other is !Point) return false;
  return x == other.x &amp;&amp; y == other.y;
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

</div> <!-- container -->

<footer>
    <div class="container-fluid">
        <di