title: How to convert Image Data type from imageUrl
body: <p>I need to convert this watermark(from assets) image and imageurl(getting from API) to Image data type, because ui.drawImage takes only Image data types</p>
  <pre class="lang-dart prettyprint-override"><code> ui.Image? watermarkImage = ui.decodeImage('assets/images/watermark.png');// getting error
      ui.Image? lookbookImage = ui.decodeImage(imageurl); // getting error
      final originalImage = imgData;
      ui.Image image = ui.Image(160, 50);
      ui.drawImage(image, watermarkImage);
  </code></pre>