NetworkImage constructor

const NetworkImage(String url, { double scale: 1.0, Map<String, String> headers })

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

The arguments must not be null.

Implementation

const NetworkImage(this.url, { this.scale = 1.0 , this.headers })
    : assert(url != null),
      assert(scale != null);