n by stretching them to fit such that they exactly
cover the destination rectangle while maintaining their relative
positions.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span> </h2>
      <pre class="language-dart"><code class="language-dart">void drawImageNine(Image image, Rect center, Rect dst, Paint paint) {
  assert(image != null); &#47;&#47; image is checked on the engine side
  assert(_rectIsValid(center));
  assert(_rectIsValid(dst));