   </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span> </h2>
      <pre class="language-dart"><code class="language-dart">bool contains(Offset point) {
  if (point.dx &lt; left || point.dx &gt;= right || point.dy &lt; top || point.dy &gt;= bottom)
    return false; &#47;&#47; outside bounding box

  _scaleRadii();

  double x;
  double y;
  double radiusX;
  double radiusY;
  &#47;&#47; check whether point is in one of the rounded corner areas
  &#47;&