mplementation</span></h2>
          <pre class="language-dart"><code class="language-dart">Rect get middleRect {
  final double leftRadius = math.max(blRadiusX, tlRadiusX);
  final double topRadius = math.max(tlRadiusY, trRadiusY);
  final double rightRadius = math.max(trRadiusX, brRadiusX);
  final double bottomRadius = math.max(brRadiusY, blRadiusY);
  return Rect.fromLTRB(
    left + leftRadius,
    top + topRadius,
    right - rightRadius,
    bottom - bottomRadius
  );
}</code></pre>
        </section>