ExtendedNetworkImageProvider constructor

ExtendedNetworkImageProvider(
  1. String url, {
  2. double scale,
  3. Map<String, String>? headers,
  4. bool cache,
  5. int retries,
  6. Duration? timeLimit,
  7. Duration timeRetry,
  8. CancellationToken? cancelToken,
  9. String? cacheKey,
  10. bool printError,
  11. bool cacheRawData,
  12. String? imageCacheName,
  13. Duration? cacheMaxAge,
})

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

The arguments url and scale must not be null.

Implementation

factory ExtendedNetworkImageProvider(
  String url, {
  double scale,
  Map<String, String>? headers,
  bool cache,
  int retries,
  Duration? timeLimit,
  Duration timeRetry,
  CancellationToken? cancelToken,
  String? cacheKey,
  bool printError,
  bool cacheRawData,
  String? imageCacheName,
  Duration? cacheMaxAge,
}) = network_image.ExtendedNetworkImageProvider;