NetImageProvider constructor
const
NetImageProvider(
- String url, {
- int? maxHeight,
- int? maxWidth,
- double scale = 1.0,
- ErrorListener? errorListener,
- Map<
String, String> ? headers, - BaseCacheManager? cacheManager,
- String? cacheKey,
- 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;