title: Preload Image Without BuildContext
body: <p>Is there a way to load images in Flutter in a function without access to a BuildContext? </p>
  
  <p>Flutter can preload images with <code>precacheImage()</code> which requires a BuildContext and is inconvenient to use. </p>
  
  <p>I would like to load images in the <code>initState()</code> method of a StatefulWidget which <code>precacheImage()</code> does not support. </p>
  
  <p>There is an open issue about preloading images that suggests loading images without a BuildContext is not currently supported. </p>
  
  <p><a href="https://github.com/flutter/flutter/issues/26127" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/26127</a></p>