NetImageProvider constructor

const NetImageProvider(
  1. String url, {
  2. int? maxHeight,
  3. int? maxWidth,
  4. double scale = 1.0,
  5. ErrorListener? errorListener,
  6. Map<String, String>? headers,
  7. BaseCacheManager? cacheManager,
  8. String? cacheKey,
  9. ImageRenderMethodForWeb? imageRenderMethodForWeb,
})

Creates an object that fetches the image at the given URL.

The arguments url and scale must not be null.

Implementation

const NetImageProvider(
  this.url, {
  this.maxHeight,
  this.maxWidth,
  this.scale = 1.0,
  this.errorListener,
  this.headers,
  this.cacheManager,
  this.cacheKey,
  ImageRenderMethodForWeb? imageRenderMethodForWeb,
}) : _imageRenderMethodForWeb =
          imageRenderMethodForWeb ?? ImageRenderMethodForWeb.HtmlImage;