NetworkImage constructor

const NetworkImage(
  1. String url,
  2. {double scale,
  3. Map<String, String>? headers}

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

The scale argument is the linear scale factor for drawing this image at its intended size. See ImageInfo.scale for more information.


const factory NetworkImage(String url, { double scale, Map<String, String>? headers }) = network_image.NetworkImage;